diff --git a/terminatorlib/config.py b/terminatorlib/config.py index 14adcb85..099cd981 100755 --- a/terminatorlib/config.py +++ b/terminatorlib/config.py @@ -204,6 +204,10 @@ class Config(object): """Set a particular configuration item""" return(self.base.set_item(key, value, self.profile)) + def get_profile(self): + """Get our profile""" + return(self.profile) + def set_profile(self, profile): """Set our profile (which usually means change it)""" dbg('Config::set_profile: Changing profile to %s' % profile) diff --git a/terminatorlib/terminal.py b/terminatorlib/terminal.py index ee27ebf1..f9420cc6 100755 --- a/terminatorlib/terminal.py +++ b/terminatorlib/terminal.py @@ -142,8 +142,9 @@ class Terminal(gtk.VBox): def set_profile(self, widget, profile): """Set our profile""" - self.config.set_profile(profile) - self.reconfigure() + if profile != self.config.get_profile(): + self.config.set_profile(profile) + self.reconfigure() def get_profile(self): """Return our profile name"""