Fixed two small issues.

Tue, 26 Nov 2013 19:19:15 +0100

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Tue, 26 Nov 2013 19:19:15 +0100
changeset 3111
5366f0647f79
parent 3110
af7a8dda4c32
child 3112
9485059ea9fa

Fixed two small issues.

Documentation/Help/source.qch file | annotate | diff | comparison | revisions
Documentation/Source/eric5.UI.UserInterface.html file | annotate | diff | comparison | revisions
Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py file | annotate | diff | comparison | revisions
UI/UserInterface.py file | annotate | diff | comparison | revisions
Binary file Documentation/Help/source.qch has changed
--- a/Documentation/Source/eric5.UI.UserInterface.html	Tue Nov 26 19:00:35 2013 +0100
+++ b/Documentation/Source/eric5.UI.UserInterface.html	Tue Nov 26 19:19:15 2013 +0100
@@ -1123,7 +1123,12 @@
 <b>__hasErrorLog</b>(<i></i>)
 <p>
         Private method to check, if an error log file exists.
-</p><a NAME="UserInterface.__helpClosed" ID="UserInterface.__helpClosed"></a>
+</p><dl>
+<dt>Returns:</dt>
+<dd>
+flag indicating the existence of an error log file (boolean)
+</dd>
+</dl><a NAME="UserInterface.__helpClosed" ID="UserInterface.__helpClosed"></a>
 <h4>UserInterface.__helpClosed</h4>
 <b>__helpClosed</b>(<i></i>)
 <p>
--- a/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py	Tue Nov 26 19:00:35 2013 +0100
+++ b/Plugins/CheckerPlugins/CodeStyleChecker/CodeStyleCheckerDialog.py	Tue Nov 26 19:19:15 2013 +0100
@@ -360,6 +360,8 @@
             self.checkProgress.setMaximum(len(py3files) + len(py2files))
             self.checkProgressLabel.setVisible(
                 len(py3files) + len(py2files) > 1)
+            self.checkProgress.setVisible(
+                len(py3files) + len(py2files) > 1)
             QApplication.processEvents()
             
             # extract the configuration values
--- a/UI/UserInterface.py	Tue Nov 26 19:00:35 2013 +0100
+++ b/UI/UserInterface.py	Tue Nov 26 19:19:15 2013 +0100
@@ -3026,6 +3026,8 @@
     def __hasErrorLog(self):
         """
         Private method to check, if an error log file exists.
+        
+        @return flag indicating the existence of an error log file (boolean)
         """
         logFile = os.path.join(Utilities.getConfigDir(),
                                self.ErrorLogFileName)
@@ -5787,7 +5789,8 @@
                         if period == 2 and lastCheck.day() == now.day():
                             # daily
                             return
-                        elif period == 3 and lastCheck.daysTo(now) < 7:
+                        elif (period == 3 and
+                              lastCheck.weekNumber() == now.weekNumber()):
                             # weekly
                             return
                         elif period == 4 and lastCheck.month() == now.month():

eric ide

mercurial