Skip to content

Commit 1a75a30

Browse files
committed
Closes #1128
1 parent 867d225 commit 1a75a30

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

src/Interface/Application/MainWindowCollaborators.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -308,7 +308,7 @@ class OtherSettingsWizardPage : public QWizardPage, public Ui::OtherSettingsWiza
308308
explicit OtherSettingsWizardPage(NewUserWizard* wiz)
309309
{
310310
setupUi(this);
311-
//connect(saveBeforeExecuteCheckBox_, SIGNAL(stateChanged(int)), SCIRunMainWindow::Instance(), SLOT(setConnectionPipelineType(int)));
311+
connect(saveBeforeExecuteCheckBox_, SIGNAL(stateChanged(int)), SCIRunMainWindow::Instance(), SLOT(setSaveBeforeExecute(int)));
312312
connect(loadPreferencesCheckBox_, SIGNAL(stateChanged(int)), wiz, SLOT(setShowPrefs(int)));
313313
}
314314
};

src/Interface/Application/SCIRunMainWindow.cc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -887,6 +887,11 @@ void SCIRunMainWindow::setConnectionPipelineType(int type)
887887
}
888888
}
889889

890+
void SCIRunMainWindow::setSaveBeforeExecute(int state)
891+
{
892+
prefsWindow_->setSaveBeforeExecute(state != 0);
893+
}
894+
890895
void SCIRunMainWindow::chooseBackgroundColor()
891896
{
892897
auto brush = networkEditor_->background();

src/Interface/Application/SCIRunMainWindow.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ public Q_SLOTS:
9999
void showZoomStatusMessage(int zoomLevel);
100100
void setDataDirectoryFromGUI();
101101
void setConnectionPipelineType(int type);
102+
void setSaveBeforeExecute(int state);
102103
protected:
103104
virtual void closeEvent(QCloseEvent* event) override;
104105
virtual void keyPressEvent(QKeyEvent *event) override;

0 commit comments

Comments
 (0)