OSDN Git Service

Debugger: Allow pure qml debugging if no C++ debugger is configured
authorKai Koehne <kai.koehne@nokia.com>
Fri, 15 Oct 2010 11:28:46 +0000 (13:28 +0200)
committerKai Koehne <kai.koehne@nokia.com>
Fri, 15 Oct 2010 11:38:12 +0000 (13:38 +0200)
Don't complain e.g. about a missing cdb debugger if the user doesn't
want to debug C++ anyway.

Task-number: QTCREATORBUG-2376
Reviewed-by: hjk
src/plugins/debugger/debuggerrunner.cpp

index 990b154..03b2853 100644 (file)
@@ -537,6 +537,9 @@ bool DebuggerRunControl::checkDebugConfiguration(int toolChain,
 
     bool success = true;
 
+    if (!(DebuggerPlugin::instance()->activeLanguages() & CppLanguage))
+        return success;
+
     switch(toolChain) {
     case ProjectExplorer::ToolChain::GCC:
     case ProjectExplorer::ToolChain::LINUX_ICC: