- ehancement: check if debugger path contains non-ascii characters (this will prevent it from work)
This commit is contained in:
parent
de625755e5
commit
f2e09075fc
1
NEWS.md
1
NEWS.md
|
@ -24,6 +24,7 @@ Version 0.5.0
|
|||
- implement: context menu for debug console
|
||||
- fix: errors in debug console
|
||||
- fix: speed up the parsing process of debugger
|
||||
- ehancement: check if debugger path contains non-ascii characters (this will prevent it from work)
|
||||
|
||||
Version 0.2.1
|
||||
- fix: crash when load last opens
|
||||
|
|
Binary file not shown.
File diff suppressed because it is too large
Load Diff
|
@ -35,8 +35,18 @@ bool Debugger::start()
|
|||
}
|
||||
mExecuting = true;
|
||||
QString debuggerPath = compilerSet->debugger();
|
||||
QFile debuggerProgram(debuggerPath);
|
||||
if (!debuggerProgram.exists()) {
|
||||
//QFile debuggerProgram(debuggerPath);
|
||||
if (!isTextAllAscii(debuggerPath)) {
|
||||
mExecuting = false;
|
||||
QMessageBox::critical(pMainWindow,
|
||||
tr("Debugger path error"),
|
||||
tr("Debugger's path \"%1\" contains non-ascii characters.")
|
||||
.arg(debuggerPath)
|
||||
+ "<br />"
|
||||
+ tr("This prevents it from executing."));
|
||||
return false;
|
||||
}
|
||||
if (!fileExists(debuggerPath)) {
|
||||
mExecuting = false;
|
||||
QMessageBox::critical(pMainWindow,
|
||||
tr("Debugger not exists"),
|
||||
|
|
|
@ -1588,11 +1588,18 @@ void MainWindow::buildContextMenus()
|
|||
|
||||
//context menu signal for Editor's tabbar
|
||||
ui->EditorTabsLeft->tabBar()->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
connect(ui->EditorTabsLeft->tabBar(),&QWidget::customContextMenuRequested,
|
||||
this, &MainWindow::onEditorTabContextMenu);
|
||||
connect(ui->EditorTabsLeft->tabBar(),
|
||||
&QWidget::customContextMenuRequested,
|
||||
this,
|
||||
&MainWindow::onEditorTabContextMenu
|
||||
);
|
||||
|
||||
ui->EditorTabsRight->tabBar()->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
connect(ui->EditorTabsRight->tabBar(),&QWidget::customContextMenuRequested,
|
||||
this, &MainWindow::onEditorTabContextMenu);
|
||||
connect(ui->EditorTabsRight->tabBar(),
|
||||
&QWidget::customContextMenuRequested,
|
||||
this,
|
||||
&MainWindow::onEditorTabContextMenu
|
||||
);
|
||||
|
||||
//context menu signal for Compile Issue view
|
||||
ui->tableIssues->setContextMenuPolicy(Qt::CustomContextMenu);
|
||||
|
|
Loading…
Reference in New Issue