mirror of
https://github.com/LBRYFoundation/LBRY-Vault.git
synced 2025-09-01 09:45:18 +00:00
Address history dialog -> window modal
This commit is contained in:
parent
d98451f114
commit
68da937e89
2 changed files with 4 additions and 6 deletions
|
@ -25,9 +25,10 @@ from PyQt4.QtCore import *
|
||||||
from util import *
|
from util import *
|
||||||
from history_widget import HistoryWidget
|
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.address = address
|
||||||
self.parent = parent
|
self.parent = parent
|
||||||
self.config = parent.config
|
self.config = parent.config
|
||||||
|
@ -35,10 +36,7 @@ class AddressDialog(QDialog):
|
||||||
self.app = parent.app
|
self.app = parent.app
|
||||||
self.saved = True
|
self.saved = True
|
||||||
|
|
||||||
QDialog.__init__(self)
|
|
||||||
self.setMinimumWidth(700)
|
self.setMinimumWidth(700)
|
||||||
self.setWindowTitle(_("Address"))
|
|
||||||
self.setModal(1)
|
|
||||||
vbox = QVBoxLayout()
|
vbox = QVBoxLayout()
|
||||||
self.setLayout(vbox)
|
self.setLayout(vbox)
|
||||||
|
|
||||||
|
|
|
@ -607,7 +607,7 @@ class ElectrumWindow(QMainWindow, PrintError):
|
||||||
|
|
||||||
def show_address(self, addr):
|
def show_address(self, addr):
|
||||||
import address_dialog
|
import address_dialog
|
||||||
d = address_dialog.AddressDialog(addr, self)
|
d = address_dialog.AddressDialog(self, addr)
|
||||||
d.exec_()
|
d.exec_()
|
||||||
|
|
||||||
def show_transaction(self, tx, tx_desc = None):
|
def show_transaction(self, tx, tx_desc = None):
|
||||||
|
|
Loading…
Add table
Reference in a new issue