- fix: debugger's "continue" button not correctly disabled
This commit is contained in:
parent
69e5e76a6f
commit
1d48991d20
1
NEWS.md
1
NEWS.md
|
@ -3,6 +3,7 @@ Red Panda C++ Version 0.12.6
|
||||||
- fix: problem cases doesn't use svg icons
|
- fix: problem cases doesn't use svg icons
|
||||||
- fix: problem's title info not updated after running cases
|
- fix: problem's title info not updated after running cases
|
||||||
- enhancement: open the corresponding source file from problem's context menu
|
- 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
|
Red Panda C++ Version 0.12.5
|
||||||
- fix: compile error in linux
|
- fix: compile error in linux
|
||||||
|
|
|
@ -1464,7 +1464,7 @@ QVariant BreakpointModel::headerData(int section, Qt::Orientation orientation, i
|
||||||
if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
|
if (orientation == Qt::Horizontal && role == Qt::DisplayRole) {
|
||||||
switch(section) {
|
switch(section) {
|
||||||
case 0:
|
case 0:
|
||||||
return tr("Type");
|
return tr("Filename");
|
||||||
case 1:
|
case 1:
|
||||||
return tr("Line");
|
return tr("Line");
|
||||||
case 2:
|
case 2:
|
||||||
|
|
|
@ -611,6 +611,7 @@ void MainWindow::applySettings()
|
||||||
if (idxProblemSet>=0)
|
if (idxProblemSet>=0)
|
||||||
ui->tabInfos->removeTab(idxProblemSet);
|
ui->tabInfos->removeTab(idxProblemSet);
|
||||||
}
|
}
|
||||||
|
ui->actionInterrupt->setVisible(pSettings->debugger().useGDBServer());
|
||||||
//icon sets for editors
|
//icon sets for editors
|
||||||
updateEditorSettings();
|
updateEditorSettings();
|
||||||
updateDebuggerSettings();
|
updateDebuggerSettings();
|
||||||
|
@ -3338,13 +3339,13 @@ void MainWindow::disableDebugActions()
|
||||||
|
|
||||||
void MainWindow::enableDebugActions()
|
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_Into->setEnabled(!mDebugger->inferiorRunning());
|
||||||
ui->actionStep_Over->setEnabled(!mDebugger->inferiorRunning());
|
ui->actionStep_Over->setEnabled(!mDebugger->inferiorRunning());
|
||||||
ui->actionStep_Out->setEnabled(!mDebugger->inferiorRunning());
|
ui->actionStep_Out->setEnabled(!mDebugger->inferiorRunning());
|
||||||
ui->actionRun_To_Cursor->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->cbEvaluate->setEnabled(!mDebugger->inferiorRunning());
|
||||||
ui->cbMemoryAddress->setEnabled(!mDebugger->inferiorRunning());
|
ui->cbMemoryAddress->setEnabled(!mDebugger->inferiorRunning());
|
||||||
if (mCPUDialog) {
|
if (mCPUDialog) {
|
||||||
|
|
Loading…
Reference in New Issue