mirror of
https://github.com/transmission/transmission.git
synced 2025-12-24 20:35:36 +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:
@@ -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()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user