changeset 557:c62fe35ae67c

fife_settings: Make sure onApply is only called if the entry changed
author nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 18 Jun 2010 19:45:52 +0000
parents 1d60e0223117
children 4cb5d0ed33a9
files engine/python/fife/extensions/fife_settings.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/engine/python/fife/extensions/fife_settings.py	Fri Jun 18 08:51:05 2010 +0000
+++ b/engine/python/fife/extensions/fife_settings.py	Fri Jun 18 19:45:52 2010 +0000
@@ -478,10 +478,8 @@
 				# only require restart if something really changed
 				if entry.requiresrestart and data != self.get(entry.module, entry.name):
 					self.changesRequireRestart = True
-
-				self.set(entry.module, entry.name, data)
-
-				entry.onApply(data)
+					self.set(entry.module, entry.name, data)
+					entry.onApply(data)
 
 		self.saveSettings()