qt: move window.get{Open,Save}FileName to util
Sometimes we want its "remember path" behaviour but it does not make sense to parent the dialog from main window. When so, caller code no longer needs to get a reference to a main window. Also rm last usages of get_parent_main_window().
This commit is contained in:
@@ -32,8 +32,8 @@ from .util import ButtonsTextEdit
|
||||
|
||||
class CompletionTextEdit(ButtonsTextEdit):
|
||||
|
||||
def __init__(self, parent=None):
|
||||
super(CompletionTextEdit, self).__init__(parent)
|
||||
def __init__(self):
|
||||
ButtonsTextEdit.__init__(self)
|
||||
self.completer = None
|
||||
self.moveCursor(QTextCursor.End)
|
||||
self.disable_suggestions()
|
||||
|
||||
Reference in New Issue
Block a user