E5Gui/E5TextEditSearchWidget.py

changeset 6501
d564cd2c9a2d
parent 6499
dcff57f91861
child 6518
926d65bd23b8
child 6635
00d9efb7afc6
--- 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