Skip to content

Commit

Permalink
Fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
zonkmachine committed Dec 6, 2016
1 parent 7d2bf73 commit 3e4a9b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
2 changes: 1 addition & 1 deletion include/SetupDialog.h
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ private slots:

// performance settings widget
void setAutoSaveInterval( int time );
void resetAutoSaveInterval();
void resetAutoSave();
void displaySaveIntervalHelp();

// audio settings widget
Expand Down
17 changes: 8 additions & 9 deletions src/gui/SetupDialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,17 +678,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 );
Expand Down Expand Up @@ -1512,13 +1512,12 @@ void SetupDialog::setAutoSaveInterval( int value )



void SetupDialog::resetAutoSaveInterval()
void SetupDialog::resetAutoSave()
{
if( m_disableAutoSave )
{
setAutoSaveInterval( MainWindow::DEFAULT_SAVE_INTERVAL_MINUTES );
}

}


Expand Down

0 comments on commit 3e4a9b2

Please sign in to comment.