Skip to content
Snippets Groups Projects
Commit 1a5a4817 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

do not allow to create a privacy lists with an empty name. fixes #2541

parent b69d736c
No related branches found
No related tags found
No related merge requests found
......@@ -2138,6 +2138,10 @@ class PrivacyListsWindow:
def on_new_privacy_list_button_clicked(self, widget):
name = self.new_privacy_list_entry.get_text()
if not name:
ErrorDialog(_('Invalid List Name'),
_('You must enter a name to create a privacy list.'))
return
key_name = 'privacy_list_%s' % name
if gajim.interface.instances[self.account].has_key(key_name):
gajim.interface.instances[self.account][key_name].window.present()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment