create self.completions in constructor

This commit is contained in:
thomasv 2012-06-12 11:32:12 +02:00
parent e631e9c89c
commit 3f81057c95
1 changed files with 1 additions and 1 deletions

View File

@ -175,6 +175,7 @@ class ElectrumWindow(QMainWindow):
self.wallet.gui_callback = self.update_callback
self.funds_error = False
self.completions = QStringListModel()
self.tabs = tabs = QTabWidget(self)
tabs.addTab(self.create_history_tab(), _('History') )
@ -425,7 +426,6 @@ class ElectrumWindow(QMainWindow):
completer = QCompleter()
completer.setCaseSensitivity(False)
self.payto_e.setCompleter(completer)
self.completions = QStringListModel()
completer.setModel(self.completions)
self.message_e = QLineEdit()