diff --git a/include/SetupDialog.h b/include/SetupDialog.h index 3cc17a2fa20..8237650029a 100644 --- a/include/SetupDialog.h +++ b/include/SetupDialog.h @@ -84,7 +84,7 @@ private slots: // performance settings widget void setAutoSaveInterval( int time ); - void resetAutoSaveInterval(); + void resetAutoSave(); void displaySaveIntervalHelp(); // audio settings widget diff --git a/src/gui/SetupDialog.cpp b/src/gui/SetupDialog.cpp index ee64f576f7a..c426a421f97 100644 --- a/src/gui/SetupDialog.cpp +++ b/src/gui/SetupDialog.cpp @@ -677,17 +677,17 @@ SetupDialog::SetupDialog( ConfigTabs _tab_to_open ) : connect( runningAutoSave, SIGNAL( toggled( bool ) ), this, SLOT( toggleRunningAutoSave( bool ) ) ); - QPushButton * saveIntervalResetBtn = new QPushButton( + QPushButton * autoSaveResetBtn = new QPushButton( embed::getIconPixmap( "reload" ), "", auto_save_tw ); - saveIntervalResetBtn->setGeometry( 290, 70, 28, 28 ); - connect( saveIntervalResetBtn, SIGNAL( clicked() ), this, - SLOT( resetAutoSaveInterval() ) ); + autoSaveResetBtn->setGeometry( 290, 70, 28, 28 ); + connect( autoSaveResetBtn, SIGNAL( clicked() ), this, + SLOT( resetAutoSave() ) ); ToolTip::add( bufsize_reset_btn, tr( "Reset to default-value" ) ); - QPushButton * saventervalBtn = new QPushButton( + QPushButton * saveIntervalBtn = new QPushButton( embed::getIconPixmap( "help" ), "", auto_save_tw ); - saventervalBtn->setGeometry( 320, 70, 28, 28 ); - connect( saventervalBtn, SIGNAL( clicked() ), this, + saveIntervalBtn->setGeometry( 320, 70, 28, 28 ); + connect( saveIntervalBtn, SIGNAL( clicked() ), this, SLOT( displaySaveIntervalHelp() ) ); perf_layout->addWidget( auto_save_tw ); @@ -1506,13 +1506,9 @@ void SetupDialog::setAutoSaveInterval( int value ) -void SetupDialog::resetAutoSaveInterval() +void SetupDialog::resetAutoSave() { - if( m_disableAutoSave ) - { - setAutoSaveInterval( MainWindow::DEFAULT_SAVE_INTERVAL_MINUTES ); - } - + setAutoSaveInterval( MainWindow::DEFAULT_SAVE_INTERVAL_MINUTES ); }