aboutsummaryrefslogtreecommitdiff
path: root/src/dialog.cc
diff options
context:
space:
mode:
authorcorvid <devnull@localhost>2015-07-05 00:04:56 +0000
committercorvid <devnull@localhost>2015-07-05 00:04:56 +0000
commit30f8add92bd3b0e1d4e6cf38d2310d199e4f6b10 (patch)
tree94c067910627f800b8b9ea409a6fbf8ddb9527dc /src/dialog.cc
parent86f2c578890551d708b89a0f1541b389fcf09aeb (diff)
restore lost initialization of choice_answer
looks like we lost it in "changeset 2768:e7f98f931ed7 Modified a_Dialog_choice5() to accept any number of alternatives [p37sitdu]"
Diffstat (limited to 'src/dialog.cc')
-rw-r--r--src/dialog.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/dialog.cc b/src/dialog.cc
index 03949a1c..64f60e38 100644
--- a/src/dialog.cc
+++ b/src/dialog.cc
@@ -382,6 +382,8 @@ int a_Dialog_choice(const char *title, const char *msg, ...)
va_end(ap);
window->end();
+ choice_answer = 0;
+
window->show();
while (window->shown())
Fl::wait();