summaryrefslogtreecommitdiffstats
path: root/setup/main.py
diff options
context:
space:
mode:
authorPeng Huang <shawn.p.huang@gmail.com>2009-05-26 07:55:28 +0800
committerPeng Huang <shawn.p.huang@gmail.com>2009-05-26 07:55:28 +0800
commite3103262badb9b9784354c78ec9bb4a499b736c5 (patch)
treee9f9173e9e9437aee88e171233eac33fe1b50dd8 /setup/main.py
parent39cf7c6a88046faa81afba16024736a5ad09c80e (diff)
downloadibus-libpinyin-e3103262badb9b9784354c78ec9bb4a499b736c5.tar.gz
ibus-libpinyin-e3103262badb9b9784354c78ec9bb4a499b736c5.tar.xz
ibus-libpinyin-e3103262badb9b9784354c78ec9bb4a499b736c5.zip
Only ask confirm when values changed.
Diffstat (limited to 'setup/main.py')
-rw-r--r--setup/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/setup/main.py b/setup/main.py
index 74b4b4b..29dcf7e 100644
--- a/setup/main.py
+++ b/setup/main.py
@@ -241,8 +241,8 @@ class SetupUI ():
# events handlers
def on_window_main_delete_event(self, widget, event):
- result = self.__quit(True)
- return True
+ changed = self.__query_changed()
+ self.__quit(changed)
def on_button_ok_clicked(self, button):
changed = self.__query_changed()