commit 7ce6860f423256af6935c47495b94881f5836b7a
parent 8583f6a560b199f53b0db89fee62683c46504580
Author: thomasv <thomasv@gitorious>
Date: Tue, 14 Feb 2012 11:10:06 +0100
this should not be static
Diffstat:
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/client/gui_qt.py b/client/gui_qt.py
@@ -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()