Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/Remmina/Remmina.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAntenore Gatta (tmow) <antenore@simbiosi.org>2022-01-24 11:23:41 +0300
committerAntenore Gatta (tmow) <antenore@simbiosi.org>2022-01-24 11:23:41 +0300
commitd47b0276e608ce4edb0405bee43fa1fc00dd0a54 (patch)
tree75fb762683a04654a56b9e98a9a1ab98b12799b3 /src
parent64b91d7acaa399256c3b8b4ae5eff3c1bcd1f495 (diff)
parent2de939c55e3510d1a61f3b6c0c54cff66e73cce3 (diff)
Merge branch 'Issue-2122-confirm-on-close' into 'master'
Issue 2122 : Confirm on close of window See merge request Remmina/Remmina!2374
Diffstat (limited to 'src')
-rw-r--r--src/rcw.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/rcw.c b/src/rcw.c
index d2fe02987..0c3e591b0 100644
--- a/src/rcw.c
+++ b/src/rcw.c
@@ -659,6 +659,16 @@ gboolean rcw_delete(RemminaConnectionWindow *cnnwin)
if (i != GTK_RESPONSE_YES)
return FALSE;
}
+ else {
+ dialog = gtk_message_dialog_new(GTK_WINDOW(cnnwin), GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION,
+ GTK_BUTTONS_YES_NO,
+ _("Are you sure you want to close this last active connection?"));
+ i = gtk_dialog_run(GTK_DIALOG(dialog));
+ gtk_widget_destroy(dialog);
+ if (i != GTK_RESPONSE_YES)
+ return FALSE;
+
+ }
}
rcw_close_all_connections(cnnwin);