E5TextEditSearchWidget: fixed an issue introduced in the last change.

Sat, 15 Sep 2018 20:07:42 +0200

author
Detlev Offenbach <detlev@die-offenbachs.de>
date
Sat, 15 Sep 2018 20:07:42 +0200
changeset 6501
d564cd2c9a2d
parent 6499
dcff57f91861
child 6502
07070e95be4d

E5TextEditSearchWidget: fixed an issue introduced in the last change.

E5Gui/E5TextEditSearchWidget.py file | annotate | diff | comparison | revisions
--- a/E5Gui/E5TextEditSearchWidget.py	Sat Sep 15 19:59:20 2018 +0200
+++ b/E5Gui/E5TextEditSearchWidget.py	Sat Sep 15 20:07:42 2018 +0200
@@ -157,8 +157,6 @@
         else:
             self.verticalLayout.takeAt(self.__widthForHeightLayoutIndex)
         self.__addWidthForHeightLayout(widthForHeight)
-        
-        self.__widthForHeight = widthForHeight
     
     def __addWidthForHeightLayout(self, widthForHeight):
         """
@@ -173,6 +171,8 @@
         else:
             self.verticalLayout.insertLayout(1, self.horizontalLayout2)
             self.__widthForHeightLayoutIndex = 1
+        
+        self.__widthForHeight = widthForHeight
     
     def attachTextEdit(self, textedit, editType="QTextEdit"):
         """

eric ide

mercurial