Ticket #2050: qt_refresh3.patch

File qt_refresh3.patch, 1.6 KB (added by Longinus00, 12 years ago)
  • qt/details.cc

    diff --git qt/details.cc qt/details.cc
    index a16ea42..d4cf424 100644
    Details :: Details( Session& session, Prefs& prefs, TorrentModel& model, QWidget 
    145145    layout->addWidget( t );
    146146
    147147    QDialogButtonBox * buttons = new QDialogButtonBox( QDialogButtonBox::Close, Qt::Horizontal, this );
    148     connect( buttons, SIGNAL(rejected()), this, SLOT(deleteLater()));
     148    connect( buttons, SIGNAL(rejected()), this, SLOT(close()));
    149149    layout->addWidget( buttons );
     150    QWidget::setAttribute( Qt::WA_DeleteOnClose, true);
    150151
    151152    connect( &myTimer, SIGNAL(timeout()), this, SLOT(onTimer()));
    152153
    Details :: refresh( ) 
    835836    myPeers = peers2;
    836837
    837838    if( single )
    838     {
    839839        myFileTreeView->update( torrents[0]->files( ) , myChangedTorrents );
    840     }
    841840    else
    842841        myFileTreeView->clear( );
    843842
  • qt/prefs-dialog.cc

    diff --git qt/prefs-dialog.cc qt/prefs-dialog.cc
    index e4ba365..e6b56c4 100644
    PrefsDialog :: PrefsDialog( Session& session, Prefs& prefs, QWidget * parent ): 
    620620    myLayout->addWidget( t );
    621621
    622622    QDialogButtonBox * buttons = new QDialogButtonBox( QDialogButtonBox::Close, Qt::Horizontal, this );
    623     connect( buttons, SIGNAL(rejected()), this, SLOT(deleteLater()) ); // "close" triggers rejected
     623    connect( buttons, SIGNAL(rejected()), this, SLOT(close()) ); // "close" triggers rejected
    624624    myLayout->addWidget( buttons );
     625    QWidget::setAttribute( Qt::WA_DeleteOnClose, true);
    625626
    626627    connect( &mySession, SIGNAL(sessionUpdated()), this, SLOT(sessionUpdated()));
    627628