summaryrefslogtreecommitdiff
path: root/gvfs/gvfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'gvfs/gvfs.c')
-rw-r--r--gvfs/gvfs.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gvfs/gvfs.c b/gvfs/gvfs.c
index 2e42bea..557f08c 100644
--- a/gvfs/gvfs.c
+++ b/gvfs/gvfs.c
@@ -216,7 +216,8 @@ ask_question_cb (GMountOperation *op,
choice = -1;
if (globs->callback_ask_question) {
fprintf (stderr, " (II) Spawning callback_ask_question (0x%.16llX)...\n", (unsigned long long) globs->callback_ask_question);
- globs->callback_ask_question (message, choices, &choice, globs->callbacks_data);
+ /* At this moment, only SFTP uses ask_question and the second button is cancellation */
+ globs->callback_ask_question (message, choices, &choice, 1, globs->callbacks_data);
fprintf (stderr, " (II) Received choice = %d\n", choice);
if (choice >= 0) {