Made some window handling smoother. 5_1_x

Fri, 02 Sep 2011 08:21:31 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Fri, 02 Sep 2011 08:21:31 +0200
branch
5_1_x
changeset 1270
e1a56c0c0b60
parent 1238
5e9e288d04de
child 1271
1e22e0168561

Made some window handling smoother.
(transplanted from 22f70d13a41e5c7fba6d86c7362638ba00ee4adc)

Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py file | annotate | diff | comparison | revisions
Plugins/VcsPlugins/vcsSubversion/SvnLogDialog.py file | annotate | diff | comparison | revisions
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Sat Aug 27 11:50:54 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogBrowserDialog.py	Fri Sep 02 08:21:31 2011 +0200
@@ -784,10 +784,8 @@
         @param rev1 first revision number (integer)
         @param rev2 second revision number (integer)
         """
-        if self.diff:
-            self.diff.close()
-            del self.diff
-        self.diff = HgDiffDialog(self.vcs)
+        if self.diff is None:
+            self.diff = HgDiffDialog(self.vcs)
         self.diff.show()
         self.diff.start(self.filename, [rev1, rev2], self.bundle)
     
--- a/Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py	Sat Aug 27 11:50:54 2011 +0200
+++ b/Plugins/VcsPlugins/vcsMercurial/HgLogDialog.py	Fri Sep 02 08:21:31 2011 +0200
@@ -371,9 +371,8 @@
             return
         self.contents.scrollToAnchor(ver)
         
-        if self.diff:
-            del self.diff
-        self.diff = HgDiffDialog(self.vcs)
+        if self.diff is None:
+            self.diff = HgDiffDialog(self.vcs)
         self.diff.show()
         self.diff.start(filename, [v1, v2], self.bundle)
     
--- a/Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py	Sat Aug 27 11:50:54 2011 +0200
+++ b/Plugins/VcsPlugins/vcsSubversion/SvnLogBrowserDialog.py	Fri Sep 02 08:21:31 2011 +0200
@@ -410,10 +410,8 @@
         @param rev1 first revision number (integer)
         @param rev2 second revision number (integer)
         """
-        if self.diff:
-            self.diff.close()
-            del self.diff
-        self.diff = SvnDiffDialog(self.vcs)
+        if self.diff is None:
+            self.diff = SvnDiffDialog(self.vcs)
         self.diff.show()
         self.diff.start(self.filename, [rev1, rev2])
     
--- a/Plugins/VcsPlugins/vcsSubversion/SvnLogDialog.py	Sat Aug 27 11:50:54 2011 +0200
+++ b/Plugins/VcsPlugins/vcsSubversion/SvnLogDialog.py	Fri Sep 02 08:21:31 2011 +0200
@@ -265,9 +265,8 @@
             return
         self.contents.scrollToAnchor(ver)
         
-        if self.diff:
-            del self.diff
-        self.diff = SvnDiffDialog(self.vcs)
+        if self.diff is None:
+            self.diff = SvnDiffDialog(self.vcs)
         self.diff.show()
         self.diff.start(filename, [v1, v2])
         

eric ide

mercurial