From 81701e080ade7649bde7376cfee4d8e96899ad9d Mon Sep 17 00:00:00 2001
From: hjk <qtc-committer@nokia.com>
Date: Wed, 5 Jan 2011 19:10:33 +0100
Subject: [PATCH] debugger: do not write the 'all' (-1) threadspec to the
 session file

This confuses 2.1 which uses 0 as 'all' value.
---
 src/plugins/debugger/breakhandler.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/plugins/debugger/breakhandler.cpp b/src/plugins/debugger/breakhandler.cpp
index e30f64904e..df378bdeea 100644
--- a/src/plugins/debugger/breakhandler.cpp
+++ b/src/plugins/debugger/breakhandler.cpp
@@ -265,7 +265,7 @@ void BreakHandler::saveBreakpoints()
             map.insert(_("condition"), data.condition);
         if (data.ignoreCount)
             map.insert(_("ignorecount"), data.ignoreCount);
-        if (data.threadSpec)
+        if (data.threadSpec >= 0)
             map.insert(_("threadspec"), data.threadSpec);
         if (!data.enabled)
             map.insert(_("disabled"), _("1"));
-- 
GitLab