@@ -96,8 +96,6 @@ def __init__(self, parent=None):
96
96
97
97
self .settings = QSettings ()
98
98
99
- self .options = optionsDialog (self )
100
-
101
99
self .shell = ShellScintilla (self )
102
100
self .setFocusProxy (self .shell )
103
101
self .shellOut = ShellOutputScintilla (self )
@@ -534,8 +532,6 @@ def __init__(self, parent=None):
534
532
self .saveFileButton .triggered .connect (self .saveScriptFile )
535
533
self .saveAsFileButton .triggered .connect (self .saveAsScriptFile )
536
534
self .helpButton .triggered .connect (self .openHelp )
537
- self .connect (self .options .buttonBox , SIGNAL ("accepted()" ),
538
- self .prefChanged )
539
535
self .connect (self .listClassMethod , SIGNAL ('itemClicked(QTreeWidgetItem*, int)' ),
540
536
self .onClickGoToLine )
541
537
self .lineEditFind .returnPressed .connect (self ._findText )
@@ -681,12 +677,11 @@ def openHelp(self):
681
677
QgsContextHelp .run ( "PythonConsole" )
682
678
683
679
def openSettings (self ):
684
- self .options .exec_ ()
685
-
686
- def prefChanged (self ):
687
- self .shell .refreshSettingsShell ()
688
- self .shellOut .refreshSettingsOutput ()
689
- self .tabEditorWidget .refreshSettingsEditor ()
680
+ options = optionsDialog (self )
681
+ if options .exec_ ():
682
+ self .shell .refreshSettingsShell ()
683
+ self .shellOut .refreshSettingsOutput ()
684
+ self .tabEditorWidget .refreshSettingsEditor ()
690
685
691
686
def callWidgetMessageBar (self , text ):
692
687
self .shellOut .widgetMessageBar (iface , text )
0 commit comments