commit 383f8924d711f97e8c94570a2eb19af3263d54bc
parent e2c19ff87109be409e4c3fcfec9c3c3064bf9ad7
Author: ThomasV <thomasv@gitorious>
Date: Sun, 5 Jul 2015 16:55:18 +0200
revert txdialog to QDialog
Diffstat:
1 file changed, 2 insertions(+), 4 deletions(-)
diff --git a/gui/qt/transaction_dialog.py b/gui/qt/transaction_dialog.py
@@ -38,7 +38,7 @@ def show_transaction(tx, parent, desc=None, prompt_if_unsaved=False):
dialogs.append(d)
d.show()
-class TxDialog(QWidget):
+class TxDialog(QDialog):
def __init__(self, tx, parent, desc, prompt_if_unsaved):
'''Transactions in the wallet will show their description.
@@ -53,7 +53,7 @@ class TxDialog(QWidget):
self.broadcast = False
self.desc = desc
- QWidget.__init__(self)
+ QDialog.__init__(self)
self.setMinimumWidth(600)
self.setWindowTitle(_("Transaction"))
@@ -227,8 +227,6 @@ class TxDialog(QWidget):
self.amount_label.setText(_("Transaction unrelated to your wallet"))
run_hook('transaction_dialog_update', self)
- self.raise_()
-
def add_io(self, vbox):