- fix: debugger's "continue" button not correctly disabled

This commit is contained in:
Roy Qu 2022-01-03 20:18:53 +08:00
parent 69e5e76a6f
commit 1d48991d20
3 changed files with 6 additions and 4 deletions

View File

@ -3,6 +3,7 @@ Red Panda C++ Version 0.12.6
- fix: problem cases doesn't use svg icons
- fix: problem's title info not updated after running cases
- enhancement: open the corresponding source file from problem's context menu
- fix: debugger's "continue" button not correctly disabled
Red Panda C++ Version 0.12.5
- fix: compile error in linux

View File

@ -1464,7 +1464,7 @@ QVariant BreakpointModel::headerData(int section, Qt::Orientation orientation, i
if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
switch(section) {
case 0:
return tr("Type");
return tr("Filename");
case 1:
return tr("Line");
case 2:

View File

@ -611,6 +611,7 @@ void MainWindow::applySettings()
if (idxProblemSet>=0)
ui->tabInfos->removeTab(idxProblemSet);
}
ui->actionInterrupt->setVisible(pSettings->debugger().useGDBServer());
//icon sets for editors
updateEditorSettings();
updateDebuggerSettings();
@ -3338,13 +3339,13 @@ void MainWindow::disableDebugActions()
void MainWindow::enableDebugActions()
{
ui->actionInterrupt->setEnabled(mDebugger->inferiorRunning());
if (pSettings->debugger().useGDBServer())
ui->actionInterrupt->setEnabled(mDebugger->inferiorRunning());
ui->actionStep_Into->setEnabled(!mDebugger->inferiorRunning());
ui->actionStep_Over->setEnabled(!mDebugger->inferiorRunning());
ui->actionStep_Out->setEnabled(!mDebugger->inferiorRunning());
ui->actionRun_To_Cursor->setEnabled(!mDebugger->inferiorRunning());
if (pSettings->debugger().useGDBServer())
ui->actionContinue->setEnabled(!mDebugger->inferiorRunning());
ui->actionContinue->setEnabled(!mDebugger->inferiorRunning());
ui->cbEvaluate->setEnabled(!mDebugger->inferiorRunning());
ui->cbMemoryAddress->setEnabled(!mDebugger->inferiorRunning());
if (mCPUDialog) {