File tree Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Expand file tree Collapse file tree 2 files changed +5
-8
lines changed Original file line number Diff line number Diff line change @@ -223,7 +223,10 @@ def getPageWidget(self, options):
223223 elif name == 'directoryPath' :
224224 self .configurators [name ] = DirectorySelectButton (self , value , fileLabel )
225225 elif name == 'hideToolBar' :
226+ # A label that has been created but not yet laid out could remain visible even after its reference has been dropped
227+ label .setParent (None )
226228 label = None
229+
227230 gb = QGroupBox ("Toolbars" )
228231 gb .setCheckable (True )
229232 gb .setChecked (not globalSettings .hideToolBar )
Original file line number Diff line number Diff line change @@ -1463,11 +1463,5 @@ def manage_toolbars_visibility(self):
14631463
14641464 self .toolBar .setVisible (shown and globalSettings .showToolBarFile )
14651465 self .editBar .setVisible (shown and globalSettings .showToolBarEdit )
1466-
1467- if shown :
1468- if globalSettings .showToolBarFormat :
1469- self .formatBar .setVisible (True )
1470- self .formattingBoxAction .setVisible (False )
1471- else :
1472- self .formatBar .setVisible (False )
1473- self .formattingBoxAction .setVisible (True )
1466+ self .formatBar .setVisible (shown and globalSettings .showToolBarFormat )
1467+ self .formattingBoxAction .setVisible (shown and not globalSettings .showToolBarFormat )
You can’t perform that action at this time.
0 commit comments