- 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
|
||||
- enhancement: Problem's test case shouldn't accept rich text inputs
|
||||
- enhancement: recalc layout info for code editors when dpi changed
|
||||
|
|
|
@ -456,13 +456,14 @@ void MainWindow::updateCompileActions()
|
|||
ui->actionRun->setEnabled(false);
|
||||
ui->actionRebuild->setEnabled(false);
|
||||
ui->actionDebug->setEnabled(false);
|
||||
ui->btnRunAllProblemCases->setEnabled(false);
|
||||
} else {
|
||||
ui->actionCompile->setEnabled(true);
|
||||
ui->actionCompile_Run->setEnabled(true);
|
||||
ui->actionRun->setEnabled(true);
|
||||
ui->actionRebuild->setEnabled(true);
|
||||
|
||||
ui->actionDebug->setEnabled(true);
|
||||
ui->btnRunAllProblemCases->setEnabled(true);
|
||||
}
|
||||
if (!mDebugger->executing()) {
|
||||
disableDebugActions();
|
||||
|
@ -1177,7 +1178,7 @@ void MainWindow::runExecutable(const QString &exeName,const QString &filename,Ru
|
|||
}
|
||||
} else {
|
||||
if (!filename.isEmpty() && compareFileModifiedTime(filename,exeName)>=0) {
|
||||
if (ui->actionCompile_Run->isEnabled()) {
|
||||
// if (ui->actionCompile_Run->isEnabled()) {
|
||||
if (QMessageBox::warning(this,tr("Confirm"),
|
||||
tr("Source file is more recent than executable.")
|
||||
+"<br /><br />"+tr("Recompile now?"),
|
||||
|
@ -1185,10 +1186,10 @@ void MainWindow::runExecutable(const QString &exeName,const QString &filename,Ru
|
|||
doCompileRun(runType);
|
||||
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