mirror of
https://github.com/transmission/transmission
synced 2024-12-25 01:03:01 +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:
parent
4d61db45aa
commit
01ff267a56
2 changed files with 4 additions and 4 deletions
|
@ -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( );
|
||||
|
||||
|
|
|
@ -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()));
|
||||
|
||||
|
|
Loading…
Reference in a new issue