tMake two more dialogs window-modal - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit 6442dd59ad53b9d84525461b0aacaae8c0ca5949 DIR parent 44a436e9640473367fcd368d4af61785dc4307e0 HTML Author: Neil Booth <kyuupichan@gmail.com> Date: Tue, 22 Dec 2015 08:02:01 +0900 Make two more dialogs window-modal Diffstat: M gui/qt/main_window.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) --- DIR diff --git a/gui/qt/main_window.py b/gui/qt/main_window.py t@@ -1882,8 +1882,7 @@ class ElectrumWindow(QMainWindow, PrintError): def new_contact_dialog(self): - d = QDialog(self) - d.setWindowTitle(_("New Contact")) + d = WindowModalDialog(self, _("New Contact")) vbox = QVBoxLayout(d) vbox.addWidget(QLabel(_('New Contact') + ':')) grid = QGridLayout() t@@ -2184,9 +2183,7 @@ class ElectrumWindow(QMainWindow, PrintError): def password_dialog(self, msg=None, parent=None): if parent == None: parent = self - d = QDialog(parent) - d.setModal(1) - d.setWindowTitle(_("Enter Password")) + d = WindowModalDialog(parent, _("Enter Password")) pw = QLineEdit() pw.setEchoMode(2) vbox = QVBoxLayout()