this should not be static

This commit is contained in:
thomasv 2012-02-14 11:10:06 +01:00
parent 8583f6a560
commit 7ce6860f42
1 changed files with 3 additions and 5 deletions

View File

@ -452,7 +452,6 @@ class ElectrumWindow(QMainWindow):
self.setStatusBar(sb)
def newaddress_dialog(self):
text, ok = QInputDialog.getText(self, 'New Contact', 'Address:')
address = str(text)
if ok:
@ -467,7 +466,7 @@ class ElectrumWindow(QMainWindow):
def show_seed_dialog(wallet, parent=None):
import mnemonic
if wallet.use_encryption:
password = self.password_dialog()
password = parent.password_dialog()
if not password: return
else:
password = None
@ -491,9 +490,8 @@ class ElectrumWindow(QMainWindow):
def show_message(self, msg):
QMessageBox.information(self, 'Message', msg, 'OK')
@staticmethod
def password_dialog( parent=None ):
d = QDialog(parent)
def password_dialog(self ):
d = QDialog(self)
d.setModal(1)
pw = QLineEdit()