Fixed an issue writing and reading watch expressions to/from the session file.

Sat, 19 Sep 2015 12:12:19 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 19 Sep 2015 12:12:19 +0200
changeset 4463
87cd9719dc23
parent 4461
3634459f8011
child 4465
2fbb5bdb8ddf

Fixed an issue writing and reading watch expressions to/from the session file.
(grafted from 1085a59b143e28af01ef685888b9abc9c2c3611b)

E5XML/SessionReader.py file | annotate | diff | comparison | revisions
E5XML/SessionWriter.py file | annotate | diff | comparison | revisions
--- a/E5XML/SessionReader.py	Thu Sep 17 18:24:27 2015 +0200
+++ b/E5XML/SessionReader.py	Sat Sep 19 12:12:19 2015 +0200
@@ -212,7 +212,7 @@
             self.readNext()
             if self.isEndElement() and self.name() == "Watchexpression":
                 self.dbs.getWatchPointModel().addWatchPoint(
-                    weCond, (weTemp, weEnabled, weCount, weSpecialCond))
+                    weCond, weSpecialCond, (weTemp, weEnabled, weCount))
                 break
             
             if self.isStartElement():
--- a/E5XML/SessionWriter.py	Thu Sep 17 18:24:27 2015 +0200
+++ b/E5XML/SessionWriter.py	Sat Sep 19 12:12:19 2015 +0200
@@ -140,7 +140,7 @@
         wpModel = self.dbs.getWatchPointModel()
         for row in range(wpModel.rowCount()):
             index = wpModel.index(row, 0)
-            cond, temp, enabled, count, special = \
+            cond, special, temp, enabled, count = \
                 wpModel.getWatchPointByIndex(index)[:5]
             self.writeStartElement("Watchexpression")
             self.writeTextElement("Condition", str(cond))

eric ide

mercurial