[Darlan] Transient dialogs. See #7185
This commit is contained in:
parent
cf9125bc98
commit
37adfe9e2a
2 changed files with 3 additions and 2 deletions
|
@ -2167,7 +2167,8 @@ class AccountsWindow:
|
||||||
message = _('Enter a new name for account %s') % self.current_account
|
message = _('Enter a new name for account %s') % self.current_account
|
||||||
old_text = self.current_account
|
old_text = self.current_account
|
||||||
dialogs.InputDialog(title, message, old_text, is_modal=False,
|
dialogs.InputDialog(title, message, old_text, is_modal=False,
|
||||||
ok_handler=(on_renamed, self.current_account))
|
ok_handler=(on_renamed, self.current_account),
|
||||||
|
transient_for=self.window)
|
||||||
|
|
||||||
def option_changed(self, option, value):
|
def option_changed(self, option, value):
|
||||||
return gajim.config.get_per('accounts', self.current_account, option) \
|
return gajim.config.get_per('accounts', self.current_account, option) \
|
||||||
|
|
|
@ -1175,7 +1175,7 @@ class Interface:
|
||||||
dlg = dialogs.InputDialog(_('Username Conflict'),
|
dlg = dialogs.InputDialog(_('Username Conflict'),
|
||||||
_('Please type a new username for your local account'),
|
_('Please type a new username for your local account'),
|
||||||
input_str=obj.alt_name, is_modal=True, ok_handler=on_ok,
|
input_str=obj.alt_name, is_modal=True, ok_handler=on_ok,
|
||||||
cancel_handler=on_cancel)
|
cancel_handler=on_cancel, transient_for=self.roster.window)
|
||||||
|
|
||||||
def handle_event_resource_conflict(self, obj):
|
def handle_event_resource_conflict(self, obj):
|
||||||
# ('RESOURCE_CONFLICT', account, ())
|
# ('RESOURCE_CONFLICT', account, ())
|
||||||
|
|
Loading…
Add table
Reference in a new issue