suppress TB on remove current theme, after

being renamed
This commit is contained in:
Dimitur Kirov 2005-10-05 10:32:20 +00:00
parent b628d8f849
commit e5fb3d70ad
1 changed files with 2 additions and 2 deletions

View File

@ -86,10 +86,9 @@ class GajimThemesWindow:
return return
new_config_name = new_name.replace(' ', '_') new_config_name = new_name.replace(' ', '_')
if new_config_name in gajim.config.get_per('themes'): if new_config_name in gajim.config.get_per('themes'):
#ErrorDialog()
return return
gajim.config.add_per('themes', new_config_name) gajim.config.add_per('themes', new_config_name)
#Copy old theme values # Copy old theme values
old_config_name = old_name.replace(' ', '_') old_config_name = old_name.replace(' ', '_')
properties = ['textcolor', 'bgcolor', 'font', 'fontattrs'] properties = ['textcolor', 'bgcolor', 'font', 'fontattrs']
gajim.config.add_per('themes', new_config_name) gajim.config.add_per('themes', new_config_name)
@ -102,6 +101,7 @@ class GajimThemesWindow:
if old_config_name == gajim.config.get('roster_theme'): if old_config_name == gajim.config.get('roster_theme'):
gajim.config.set('roster_theme', new_config_name) gajim.config.set('roster_theme', new_config_name)
model.set_value(iter, 0, new_name) model.set_value(iter, 0, new_name)
self.current_theme = new_name
self.plugin.windows['preferences'].update_preferences_window() self.plugin.windows['preferences'].update_preferences_window()
def fill_themes_treeview(self): def fill_themes_treeview(self):