From a61fb3bd4f5a0b462226df2802ade92cde2e217d Mon Sep 17 00:00:00 2001 From: Denis Fomin Date: Thu, 24 Oct 2013 14:17:30 +0400 Subject: [PATCH] Set transient_for 'Bookmark already set' and 'Bookmark has been added successfully' in disco --- src/disco.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/disco.py b/src/disco.py index fcc717f56..5aec4450c 100644 --- a/src/disco.py +++ b/src/disco.py @@ -1881,7 +1881,8 @@ class MucBrowser(AgentBrowser): for bookmark in gajim.connections[self.account].bookmarks: if bookmark['jid'] == bm['jid']: dialogs.ErrorDialog( _('Bookmark already set'), - _('Group Chat "%s" is already in your bookmarks.') % bm['jid']) + _('Group Chat "%s" is already in your bookmarks.') % bm['jid'], + transient_for=self.window.window) return gajim.connections[self.account].bookmarks.append(bm) @@ -1891,7 +1892,8 @@ class MucBrowser(AgentBrowser): dialogs.InformationDialog( _('Bookmark has been added successfully'), - _('You can manage your bookmarks via Actions menu in your roster.')) + _('You can manage your bookmarks via Actions menu in your roster.'), + transient_for=self.window.window) def on_join_button_clicked(self, *args): """