- fix: button "run all problem cases" not disabled when compiling or debugging
This commit is contained in:
parent
c3ea1e6dd4
commit
f0960f0dcb
3
NEWS.md
3
NEWS.md
|
@ -1,3 +1,6 @@
|
||||||
|
Version 0.11.2 For Dev-C++ 7 Beta
|
||||||
|
- fix: button "run all problem cases" not disabled when compiling or debugging
|
||||||
|
|
||||||
Version 0.11.1 For Dev-C++ 7 Beta
|
Version 0.11.1 For Dev-C++ 7 Beta
|
||||||
- enhancement: Problem's test case shouldn't accept rich text inputs
|
- enhancement: Problem's test case shouldn't accept rich text inputs
|
||||||
- enhancement: recalc layout info for code editors when dpi changed
|
- enhancement: recalc layout info for code editors when dpi changed
|
||||||
|
|
|
@ -456,13 +456,14 @@ void MainWindow::updateCompileActions()
|
||||||
ui->actionRun->setEnabled(false);
|
ui->actionRun->setEnabled(false);
|
||||||
ui->actionRebuild->setEnabled(false);
|
ui->actionRebuild->setEnabled(false);
|
||||||
ui->actionDebug->setEnabled(false);
|
ui->actionDebug->setEnabled(false);
|
||||||
|
ui->btnRunAllProblemCases->setEnabled(false);
|
||||||
} else {
|
} else {
|
||||||
ui->actionCompile->setEnabled(true);
|
ui->actionCompile->setEnabled(true);
|
||||||
ui->actionCompile_Run->setEnabled(true);
|
ui->actionCompile_Run->setEnabled(true);
|
||||||
ui->actionRun->setEnabled(true);
|
ui->actionRun->setEnabled(true);
|
||||||
ui->actionRebuild->setEnabled(true);
|
ui->actionRebuild->setEnabled(true);
|
||||||
|
|
||||||
ui->actionDebug->setEnabled(true);
|
ui->actionDebug->setEnabled(true);
|
||||||
|
ui->btnRunAllProblemCases->setEnabled(true);
|
||||||
}
|
}
|
||||||
if (!mDebugger->executing()) {
|
if (!mDebugger->executing()) {
|
||||||
disableDebugActions();
|
disableDebugActions();
|
||||||
|
@ -1177,18 +1178,18 @@ void MainWindow::runExecutable(const QString &exeName,const QString &filename,Ru
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (!filename.isEmpty() && compareFileModifiedTime(filename,exeName)>=0) {
|
if (!filename.isEmpty() && compareFileModifiedTime(filename,exeName)>=0) {
|
||||||
if (ui->actionCompile_Run->isEnabled()) {
|
// if (ui->actionCompile_Run->isEnabled()) {
|
||||||
if (QMessageBox::warning(this,tr("Confirm"),
|
if (QMessageBox::warning(this,tr("Confirm"),
|
||||||
tr("Source file is more recent than executable.")
|
tr("Source file is more recent than executable.")
|
||||||
+"<br /><br />"+tr("Recompile now?"),
|
+"<br /><br />"+tr("Recompile now?"),
|
||||||
QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {
|
QMessageBox::Yes | QMessageBox::No) == QMessageBox::Yes) {
|
||||||
doCompileRun(runType);
|
doCompileRun(runType);
|
||||||
return;
|
return;
|
||||||
}
|
|
||||||
} else {
|
|
||||||
QMessageBox::warning(this,"Error",
|
|
||||||
tr("Source file is more recent than executable."));
|
|
||||||
}
|
}
|
||||||
|
// } else {
|
||||||
|
// QMessageBox::warning(this,"Error",
|
||||||
|
// tr("Source file is more recent than executable."));
|
||||||
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue