Skip to content

Commit 55e5819

Browse files
committed
Merge branch 'release/2.2.3'
2 parents cb004b1 + 6e48d9d commit 55e5819

File tree

4 files changed

+12
-4
lines changed

4 files changed

+12
-4
lines changed

MiniZincIDE/CHANGES

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
2017-05-17
1+
v2.2.3
2+
- Only run solution checker if it is enabled in the solver configuration dialog.
23
v2.2.2
34
- Add line/column display in status bar. Fixes #65.
45
- Optional parameters don't have to be defined in input dialog.

MiniZincIDE/MiniZincIDE.pro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ greaterThan(QT_MAJOR_VERSION, 4): {
1919
TARGET = MiniZincIDE
2020
TEMPLATE = app
2121

22-
VERSION = 2.2.2
22+
VERSION = 2.2.3
2323
DEFINES += MINIZINC_IDE_VERSION=\\\"$$VERSION\\\"
2424

2525
bundled {

MiniZincIDE/mainwindow.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1369,7 +1369,7 @@ void MainWindow::tabChange(int tab) {
13691369
checkFile.replace(checkFile.length()-1,1,"c");
13701370
haveChecker = project.containsFile(checkFile) || project.containsFile(checkFile+".mzn");
13711371
}
1372-
if (haveChecker && (ui->defaultBehaviourButton->isChecked() || ui->conf_check_solutions->isChecked())) {
1372+
if (haveChecker && ui->conf_check_solutions->isChecked()) {
13731373
ui->actionRun->setText("Run + check");
13741374
} else {
13751375
ui->actionRun->setText("Run");
@@ -1454,7 +1454,7 @@ QStringList MainWindow::parseConf(const ConfMode& confMode, const QString& model
14541454
ret << "-s";
14551455
if ( (confMode==CONF_COMPILE || confMode==CONF_CHECKARGS) && !ui->conf_cmd_params->text().isEmpty())
14561456
ret << "-D" << ui->conf_cmd_params->text();
1457-
if (confMode==CONF_COMPILE && (ui->defaultBehaviourButton->isChecked() || ui->conf_check_solutions->isChecked()) && haveCompilerCheck) {
1457+
if (confMode==CONF_COMPILE && ui->conf_check_solutions->isChecked() && haveCompilerCheck) {
14581458
if (modelFile.endsWith(".mzn")) {
14591459
QString checkFile = modelFile;
14601460
checkFile.replace(checkFile.length()-1,1,"c");
@@ -4148,3 +4148,8 @@ void MainWindow::on_conf_dock_widget_visibilityChanged(bool visible)
41484148
ui->actionEditSolverConfig->setText("Show configuration editor...");
41494149
}
41504150
}
4151+
4152+
void MainWindow::on_conf_check_solutions_toggled(bool checked)
4153+
{
4154+
tabChange(ui->tabWidget->currentIndex());
4155+
}

MiniZincIDE/mainwindow.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -307,6 +307,8 @@ private slots:
307307
void on_conf_default_toggled(bool checked);
308308
void on_conf_dock_widget_visibilityChanged(bool visible);
309309

310+
void on_conf_check_solutions_toggled(bool checked);
311+
310312
protected:
311313
virtual void closeEvent(QCloseEvent*);
312314
virtual void dragEnterEvent(QDragEnterEvent *);

0 commit comments

Comments
 (0)