Changeset 10632


Ignore:
Timestamp:
May 6, 2010, 2:16:17 PM (8 years ago)
Author:
charles
Message:

(trunk qt) #2050 "properties dialog changes seem to undo themselves" -- another patch from Longinus00. Seems like he should have svn write access by now...

Location:
trunk/qt
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/qt/details.cc

    r10627 r10632  
    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()));
     
    836837
    837838    if( single )
    838     {
    839839        myFileTreeView->update( torrents[0]->files( ) , myChangedTorrents );
    840     }
    841840    else
    842841        myFileTreeView->clear( );
  • trunk/qt/prefs-dialog.cc

    r10630 r10632  
    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()));
Note: See TracChangeset for help on using the changeset viewer.