network_dialog: do not use parent for signalling
This commit is contained in:
@@ -139,7 +139,7 @@ class ElectrumGui:
|
||||
# Use a signal as can be called from daemon thread
|
||||
self.app.emit(SIGNAL('new_window'), path, uri)
|
||||
|
||||
def show_network_dialog(self, parent):
|
||||
def show_network_dialog(self):
|
||||
from network_dialog import NetworkDialog
|
||||
if not self.daemon.network:
|
||||
parent.show_warning(_('You are using Electrum in offline mode; restart Electrum if you want to get connected'), title=_('Offline'))
|
||||
@@ -148,7 +148,7 @@ class ElectrumGui:
|
||||
self.nd.show()
|
||||
self.nd.raise_()
|
||||
return
|
||||
self.nd = NetworkDialog(self.daemon.network, self.config, parent)
|
||||
self.nd = NetworkDialog(self.daemon.network, self.config)
|
||||
self.nd.show()
|
||||
|
||||
def create_window_for_wallet(self, wallet):
|
||||
|
||||
Reference in New Issue
Block a user