remove inform dialog for non-ascii char in gdb path

This commit is contained in:
Roy Qu 2022-03-30 20:45:08 +08:00
parent eb4eadabbc
commit f08b14978c
1 changed files with 10 additions and 10 deletions

View File

@ -66,16 +66,16 @@ bool Debugger::start(const QString& inferior)
mExecuting = true;
QString debuggerPath = compilerSet->debugger();
//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 (!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,