Browse Source

Address history dialog -> window modal

283
Neil Booth 9 years ago
parent
commit
68da937e89
  1. 8
      gui/qt/address_dialog.py
  2. 2
      gui/qt/main_window.py

8
gui/qt/address_dialog.py

@ -25,9 +25,10 @@ from PyQt4.QtCore import *
from util import *
from history_widget import HistoryWidget
class AddressDialog(QDialog):
class AddressDialog(WindowModalDialog):
def __init__(self, address, parent):
def __init__(self, parent, address):
WindowModalDialog.__init__(self, parent, _("Address"))
self.address = address
self.parent = parent
self.config = parent.config
@ -35,10 +36,7 @@ class AddressDialog(QDialog):
self.app = parent.app
self.saved = True
QDialog.__init__(self)
self.setMinimumWidth(700)
self.setWindowTitle(_("Address"))
self.setModal(1)
vbox = QVBoxLayout()
self.setLayout(vbox)

2
gui/qt/main_window.py

@ -607,7 +607,7 @@ class ElectrumWindow(QMainWindow, PrintError):
def show_address(self, addr):
import address_dialog
d = address_dialog.AddressDialog(addr, self)
d = address_dialog.AddressDialog(self, addr)
d.exec_()
def show_transaction(self, tx, tx_desc = None):

Loading…
Cancel
Save