1
0
Fork 0
mirror of https://github.com/transmission/transmission synced 2024-12-25 09:13:06 +00:00

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

This commit is contained in:
Charles Kerr 2010-05-06 14:16:17 +00:00
parent 4d61db45aa
commit 01ff267a56
2 changed files with 4 additions and 4 deletions

View file

@ -145,8 +145,9 @@ Details :: Details( Session& session, Prefs& prefs, TorrentModel& model, QWidget
layout->addWidget( t );
QDialogButtonBox * buttons = new QDialogButtonBox( QDialogButtonBox::Close, Qt::Horizontal, this );
connect( buttons, SIGNAL(rejected()), this, SLOT(deleteLater()));
connect( buttons, SIGNAL(rejected()), this, SLOT(close()));
layout->addWidget( buttons );
QWidget::setAttribute( Qt::WA_DeleteOnClose, true );
connect( &myTimer, SIGNAL(timeout()), this, SLOT(onTimer()));
@ -835,9 +836,7 @@ Details :: refresh( )
myPeers = peers2;
if( single )
{
myFileTreeView->update( torrents[0]->files( ) , myChangedTorrents );
}
else
myFileTreeView->clear( );

View file

@ -620,8 +620,9 @@ PrefsDialog :: PrefsDialog( Session& session, Prefs& prefs, QWidget * parent ):
myLayout->addWidget( t );
QDialogButtonBox * buttons = new QDialogButtonBox( QDialogButtonBox::Close, Qt::Horizontal, this );
connect( buttons, SIGNAL(rejected()), this, SLOT(deleteLater()) ); // "close" triggers rejected
connect( buttons, SIGNAL(rejected()), this, SLOT(close()) ); // "close" triggers rejected
myLayout->addWidget( buttons );
QWidget::setAttribute( Qt::WA_DeleteOnClose, true );
connect( &mySession, SIGNAL(sessionUpdated()), this, SLOT(sessionUpdated()));