Fixed a few issues. 5_0_x

Mon, 30 Aug 2010 19:01:55 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Mon, 30 Aug 2010 19:01:55 +0200
branch
5_0_x
changeset 534
7d247a767510
parent 530
ff77c9153c47
child 552
bc2948d7c5f2

Fixed a few issues.

Debugger/BreakPointModel.py file | annotate | diff | comparison | revisions
Debugger/WatchPointModel.py file | annotate | diff | comparison | revisions
Debugger/WatchPointViewer.py file | annotate | diff | comparison | revisions
Helpviewer/History/HistoryMenu.py file | annotate | diff | comparison | revisions
--- a/Debugger/BreakPointModel.py	Mon Aug 30 11:06:25 2010 +0200
+++ b/Debugger/BreakPointModel.py	Mon Aug 30 19:01:55 2010 +0200
@@ -45,7 +45,7 @@
         
         @return column count (integer)
         """
-        return len(self.header) + 1
+        return len(self.header)
     
     def rowCount(self, parent = QModelIndex()):
         """
--- a/Debugger/WatchPointModel.py	Mon Aug 30 11:06:25 2010 +0200
+++ b/Debugger/WatchPointModel.py	Mon Aug 30 19:01:55 2010 +0200
@@ -42,7 +42,7 @@
         
         @return column count (integer)
         """
-        return len(self.header) + 1
+        return len(self.header)
     
     def rowCount(self, parent = QModelIndex()):
         """
--- a/Debugger/WatchPointViewer.py	Mon Aug 30 11:06:25 2010 +0200
+++ b/Debugger/WatchPointViewer.py	Mon Aug 30 19:01:55 2010 +0200
@@ -281,7 +281,7 @@
                 (cond, temp, enabled, count, special), self)
             if dlg.exec_() == QDialog.Accepted:
                 cond, temp, enabled, count, special = dlg.getData()
-                if not self.__findDuplicates(cond, special, True, index):
+                if not self.__findDuplicates(cond, special, True, sindex):
                     self.__model.setWatchPointByIndex(sindex, 
                         cond, special, (temp, enabled, count))
                     self.__resizeColumns()
--- a/Helpviewer/History/HistoryMenu.py	Mon Aug 30 11:06:25 2010 +0200
+++ b/Helpviewer/History/HistoryMenu.py	Mon Aug 30 19:01:55 2010 +0200
@@ -173,7 +173,7 @@
         treeIndex = self.__treeModel.mapFromSource(historyIndex)
         treeIndexParent = treeIndex.parent()
         
-        soureRow = self.sourceModel().mapToSource(treeIndexParent).row()
+        sourceRow = self.sourceModel().mapToSource(treeIndexParent).row()
         bumpedItems = self.bumpedRows()
         if bumpedItems <= self.MOVEDROWS and \
            bumpedItems == self.sourceModel().rowCount(self.sourceModel().index(0, 0)):
@@ -308,4 +308,4 @@
                     QMessageBox.No | \
                     QMessageBox.Yes),
                 QMessageBox.No) == QMessageBox.Yes:
-            self.__historyManager.clear()
\ No newline at end of file
+            self.__historyManager.clear()

eric ide

mercurial