ask for all rooms
This commit is contained in:
parent
f47e7d5887
commit
8a78e767ab
|
@ -121,11 +121,24 @@ class GroupchatWindow(chat.Chat):
|
||||||
if dialog.get_response() != gtk.RESPONSE_OK:
|
if dialog.get_response() != gtk.RESPONSE_OK:
|
||||||
stop_propagation = True #stop the propagation of the event
|
stop_propagation = True #stop the propagation of the event
|
||||||
if not stop_propagation and self.confirm_close:
|
if not stop_propagation and self.confirm_close:
|
||||||
dialog = dialogs.ConfirmationDialogCheck(
|
if len(self.xmls) >=2:
|
||||||
_('Do you want to leave room "%s"') %room_jid.split('@')[0],
|
names = ''
|
||||||
_('If you close this window, you will be disconnected from the room.'),
|
for room in self.xmls:
|
||||||
_('Do not ask me again')
|
if names != '':
|
||||||
)
|
names += ', '
|
||||||
|
names += gajim.get_nick_from_jid(room)
|
||||||
|
pritext = _('Are you sure you want to leave rooms "%s"?') \
|
||||||
|
% names
|
||||||
|
sectext = \
|
||||||
|
_('If you close this window, you will be disconnected from these rooms.')
|
||||||
|
else:
|
||||||
|
name = gajim.get_nick_from_jid(room_jid)
|
||||||
|
pritext = _('Are you sure you want to leave room "%s"?') \
|
||||||
|
% name
|
||||||
|
sectext = \
|
||||||
|
_('If you close this window, you will be disconnected from the room.')
|
||||||
|
dialog = dialogs.ConfirmationDialogCheck(pritext, sectext,
|
||||||
|
_('Do not ask me again') )
|
||||||
if dialog.get_response() != gtk.RESPONSE_OK:
|
if dialog.get_response() != gtk.RESPONSE_OK:
|
||||||
stop_propagation = True
|
stop_propagation = True
|
||||||
if dialog.is_checked():
|
if dialog.is_checked():
|
||||||
|
|
Loading…
Reference in New Issue