From f08b14978ce8e0266f4801252404b614143eb531 Mon Sep 17 00:00:00 2001 From: Roy Qu Date: Wed, 30 Mar 2022 20:45:08 +0800 Subject: [PATCH] remove inform dialog for non-ascii char in gdb path --- RedPandaIDE/debugger.cpp | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/RedPandaIDE/debugger.cpp b/RedPandaIDE/debugger.cpp index a3f40936..a342185b 100644 --- a/RedPandaIDE/debugger.cpp +++ b/RedPandaIDE/debugger.cpp @@ -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) - + "
" - + 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) +// + "
" +// + tr("This prevents it from executing.")); +// return false; +// } if (!fileExists(debuggerPath)) { mExecuting = false; QMessageBox::critical(pMainWindow,