From d653099b8cb1effdfce96f897077b33fcc035e14 Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Wed, 8 Sep 2010 10:59:01 +0200
Subject: [PATCH] debugger: don't show list of searched dumper locations if
 there was none

---
 src/plugins/debugger/gdb/classicgdbengine.cpp | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/src/plugins/debugger/gdb/classicgdbengine.cpp b/src/plugins/debugger/gdb/classicgdbengine.cpp
index b9e1c83135e..8a3490107d5 100644
--- a/src/plugins/debugger/gdb/classicgdbengine.cpp
+++ b/src/plugins/debugger/gdb/classicgdbengine.cpp
@@ -708,7 +708,9 @@ bool GdbEngine::checkDebuggingHelpersClassic()
     const QString msg = tr("The debugging helper library was not found at %1.")
             .arg(loc);
     showMessage(msg);
-    showQtDumperLibraryWarning(msg); // This might build the library.
+    // This can happen for remote debugging.
+    if (!locations.isEmpty())
+        showQtDumperLibraryWarning(msg); // This might build the library.
     return QFileInfo(lib).exists();
 }
 
-- 
GitLab