From a0b322b1885bf587d4ab1b0f04b4854748cf5cf5 Mon Sep 17 00:00:00 2001 From: DYefremov Date: Sat, 15 Jun 2019 21:43:24 +0300 Subject: [PATCH] set text for the question dialog --- app/ui/dialogs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/ui/dialogs.py b/app/ui/dialogs.py index 0fa4ad6b..7e2690d1 100644 --- a/app/ui/dialogs.py +++ b/app/ui/dialogs.py @@ -76,7 +76,7 @@ def show_dialog(dialog_type: DialogType, transient, text=None, options=None, act elif dialog_type is DialogType.INPUT: return get_input_dialog(transient, text) elif dialog_type is DialogType.QUESTION: - return get_message_dialog(transient, DialogType.QUESTION, Gtk.ButtonsType.OK_CANCEL, "Are you sure?") + return get_message_dialog(transient, DialogType.QUESTION, Gtk.ButtonsType.OK_CANCEL, text or "Are you sure?") elif dialog_type is DialogType.ABOUT: return get_about_dialog(transient)