summaryrefslogtreecommitdiffstats
path: root/Mac/Lib/EasyDialogs.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mac/Lib/EasyDialogs.py')
-rw-r--r--Mac/Lib/EasyDialogs.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Mac/Lib/EasyDialogs.py b/Mac/Lib/EasyDialogs.py
index f0c6081..1854b69 100644
--- a/Mac/Lib/EasyDialogs.py
+++ b/Mac/Lib/EasyDialogs.py
@@ -98,8 +98,12 @@ def AskYesNoCancel(question, default = 0):
tp, h, rect = d.GetDialogItem(5)
SetDialogItemText(h, question)
d.SetDialogCancelItem(4)
- if default in (2, 3, 4):
- d.SetDialogDefaultItem(default)
+ if default == 1:
+ d.SetDialogDefaultItem(2)
+ elif default == 0:
+ d.SetDialogDefaultItem(3)
+ elif default == -1:
+ d.SetDialogDefaultItem(4)
while 1:
n = ModalDialog(None)
if n == 1: return default