diff --git a/src/plugins/debugger/cdb/cdbengine.cpp b/src/plugins/debugger/cdb/cdbengine.cpp index 432205ff027..840f78dfc93 100644 --- a/src/plugins/debugger/cdb/cdbengine.cpp +++ b/src/plugins/debugger/cdb/cdbengine.cpp @@ -2800,7 +2800,7 @@ void CdbEngine::setupScripting(const DebuggerResponse &response) } const FilePath path = settings().extraDumperFile(); - if (!path.isEmpty() && path.isReadableFile()) { + if (path.isReadableFile()) { DebuggerCommand cmd("theDumper.addDumperModule", ScriptCommand); cmd.arg("path", path.path()); runCommand(cmd); diff --git a/src/plugins/debugger/console/consoleview.cpp b/src/plugins/debugger/console/consoleview.cpp index d42f4ae9185..de68944e8f4 100644 --- a/src/plugins/debugger/console/consoleview.cpp +++ b/src/plugins/debugger/console/consoleview.cpp @@ -162,9 +162,8 @@ void ConsoleView::onRowActivated(const QModelIndex &index) const Utils::FilePath fp = m_finder.findFile(model()->data(index, ConsoleItem::FileRole).toString()).constFirst(); - if (fp.exists() && fp.isFile() && fp.isReadableFile()) { + if (fp.isReadableFile()) Core::EditorManager::openEditorAt({fp, model()->data(index, ConsoleItem::LineRole).toInt()}); - } } void ConsoleView::copyToClipboard(const QModelIndex &index) diff --git a/src/plugins/debugger/gdb/gdbengine.cpp b/src/plugins/debugger/gdb/gdbengine.cpp index 3abaea75a46..1079fb24eaf 100644 --- a/src/plugins/debugger/gdb/gdbengine.cpp +++ b/src/plugins/debugger/gdb/gdbengine.cpp @@ -4044,7 +4044,7 @@ void GdbEngine::handleGdbStarted() } const FilePath path = settings().extraDumperFile(); - if (!path.isEmpty() && path.isReadableFile()) { + if (path.isReadableFile()) { DebuggerCommand cmd("addDumperModule"); cmd.arg("path", path.path()); runCommand(cmd); diff --git a/src/plugins/debugger/lldb/lldbengine.cpp b/src/plugins/debugger/lldb/lldbengine.cpp index d7994be0070..e234aefc216 100644 --- a/src/plugins/debugger/lldb/lldbengine.cpp +++ b/src/plugins/debugger/lldb/lldbengine.cpp @@ -238,7 +238,7 @@ void LldbEngine::handleLldbStarted() executeCommand(commands); const FilePath path = settings().extraDumperFile(); - if (!path.isEmpty() && path.isReadableFile()) { + if (path.isReadableFile()) { DebuggerCommand cmd("addDumperModule"); cmd.arg("path", path.path()); runCommand(cmd);