changeset 558:4cb5d0ed33a9

Fixed a small bug introduced in the last commit
author nihathrael@33b003aa-7bff-0310-803a-e67f0ece8222
date Fri, 18 Jun 2010 19:49:13 +0000
parents c62fe35ae67c
children cccff9b04f57
files engine/python/fife/extensions/fife_settings.py
diffstat 1 files changed, 5 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/engine/python/fife/extensions/fife_settings.py	Fri Jun 18 19:45:52 2010 +0000
+++ b/engine/python/fife/extensions/fife_settings.py	Fri Jun 18 19:49:13 2010 +0000
@@ -475,12 +475,14 @@
 				if type(entry.initialdata) is list:
 					data = entry.initialdata[data]
 
-				# only require restart if something really changed
-				if entry.requiresrestart and data != self.get(entry.module, entry.name):
-					self.changesRequireRestart = True
+				# only take action if something really changed
+				if data != self.get(entry.module, entry.name):
 					self.set(entry.module, entry.name, data)
 					entry.onApply(data)
 
+					if entry.requiresrestart:
+						self.changesRequireRestart = True
+
 		self.saveSettings()
 
 		self.OptionsDlg.hide()