Fixed an issue with the configuration dialog not highlighting the correct list entry, if the name was not unique.

Fri, 15 Apr 2011 20:04:55 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 15 Apr 2011 20:04:55 +0200
changeset 990
93253de2ae77
parent 989
42b69a254eda
child 991
5ec5e707dfa5

Fixed an issue with the configuration dialog not highlighting the correct list entry, if the name was not unique.

APIs/Python3/eric5.api file | annotate | diff | comparison | revisions
Documentation/Help/source.qch file | annotate | diff | comparison | revisions
Documentation/Source/eric5.Debugger.DebugServer.html file | annotate | diff | comparison | revisions
Documentation/Source/eric5.Preferences.ConfigurationDialog.html file | annotate | diff | comparison | revisions
Preferences/ConfigurationDialog.py file | annotate | diff | comparison | revisions
--- a/APIs/Python3/eric5.api	Fri Apr 15 19:51:20 2011 +0200
+++ b/APIs/Python3/eric5.api	Fri Apr 15 20:04:55 2011 +0200
@@ -4093,7 +4093,7 @@
 eric5.Preferences.ConfigurationDialog.ConfigurationWidget.on_resetButton_clicked?4()
 eric5.Preferences.ConfigurationDialog.ConfigurationWidget.preferencesChanged?7
 eric5.Preferences.ConfigurationDialog.ConfigurationWidget.setPreferences?4()
-eric5.Preferences.ConfigurationDialog.ConfigurationWidget.showConfigurationPageByName?4(pageName)
+eric5.Preferences.ConfigurationDialog.ConfigurationWidget.showConfigurationPageByName?4(pageName, setCurrent=True)
 eric5.Preferences.ConfigurationDialog.ConfigurationWidget?1(parent=None, fromEric=True, displayMode=DefaultMode)
 eric5.Preferences.ConfigurationDialog.ConfigurationWindow.accept?4()
 eric5.Preferences.ConfigurationDialog.ConfigurationWindow.showConfigurationPageByName?4(pageName)
Binary file Documentation/Help/source.qch has changed
--- a/Documentation/Source/eric5.Debugger.DebugServer.html	Fri Apr 15 19:51:20 2011 +0200
+++ b/Documentation/Source/eric5.Debugger.DebugServer.html	Fri Apr 15 20:04:55 2011 +0200
@@ -793,7 +793,7 @@
 name of the test (string)
 </dd><dt><i>traceback</i></dt>
 <dd>
-lines of traceback info (string)
+lines of traceback info (list of strings)
 </dd>
 </dl><a NAME="DebugServer.clientUtTestFailed" ID="DebugServer.clientUtTestFailed"></a>
 <h4>DebugServer.clientUtTestFailed</h4>
@@ -806,7 +806,7 @@
 name of the test (string)
 </dd><dt><i>traceback</i></dt>
 <dd>
-lines of traceback info (string)
+lines of traceback info (list of strings)
 </dd>
 </dl><a NAME="DebugServer.getBreakPointModel" ID="DebugServer.getBreakPointModel"></a>
 <h4>DebugServer.getBreakPointModel</h4>
--- a/Documentation/Source/eric5.Preferences.ConfigurationDialog.html	Fri Apr 15 19:51:20 2011 +0200
+++ b/Documentation/Source/eric5.Preferences.ConfigurationDialog.html	Fri Apr 15 20:04:55 2011 +0200
@@ -405,13 +405,16 @@
         Public method called to store the selected values into the preferences storage.
 </p><a NAME="ConfigurationWidget.showConfigurationPageByName" ID="ConfigurationWidget.showConfigurationPageByName"></a>
 <h4>ConfigurationWidget.showConfigurationPageByName</h4>
-<b>showConfigurationPageByName</b>(<i>pageName</i>)
+<b>showConfigurationPageByName</b>(<i>pageName, setCurrent=True</i>)
 <p>
         Public slot to show a named configuration page.
 </p><dl>
 <dt><i>pageName</i></dt>
 <dd>
 name of the configuration page to show (string)
+</dd><dt><i>setCurrent</i></dt>
+<dd>
+flag indicating to set the current item (boolean)
 </dd>
 </dl>
 <div align="right"><a href="#top">Up</a></div>
--- a/Preferences/ConfigurationDialog.py	Fri Apr 15 19:51:20 2011 +0200
+++ b/Preferences/ConfigurationDialog.py	Fri Apr 15 20:04:55 2011 +0200
@@ -473,7 +473,7 @@
         @param column column that was selected (integer) (ignored)
         """
         pageName = itm.getPageName()
-        self.showConfigurationPageByName(pageName)
+        self.showConfigurationPageByName(pageName, setCurrent=False)
         
     def __initPage(self, pageData):
         """
@@ -494,11 +494,12 @@
             pageData[-1] = page
         return page
         
-    def showConfigurationPageByName(self, pageName):
+    def showConfigurationPageByName(self, pageName, setCurrent=True):
         """
         Public slot to show a named configuration page.
         
         @param pageName name of the configuration page to show (string)
+        @param setCurrent flag indicating to set the current item (boolean)
         """
         if pageName == "empty":
             page = self.emptyPage
@@ -511,7 +512,7 @@
                 page = pageData[-1]
             if page is None:
                 page = self.emptyPage
-            else:
+            elif setCurrent:
                 items = self.configList.findItems(pageData[0],
                     Qt.MatchFixedString | Qt.MatchRecursive)
                 if items:

eric ide

mercurial