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/rcw.c
diff options
context:
space:
mode:
authorEmmanuel Guyot <emmanuel.guyot@gmail.com>2022-01-24 00:53:53 +0300
committerEmmanuel Guyot <emmanuel.guyot@gmail.com>2022-01-24 01:35:47 +0300
commitdbd73dcbfea559fec974de9af68a986d53ca3f93 (patch)
treec9de940a9cbdc47f9bc4a35542d386e8a5b05a42 /src/rcw.c
parentd59d78fe8a693031e4e0236312cceb6b28c50e3f (diff)
Issue 2122 : Confirm on close of window
Diffstat (limited to 'src/rcw.c')
-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..05b2f0728 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?"), n);
+ i = gtk_dialog_run(GTK_DIALOG(dialog));
+ gtk_widget_destroy(dialog);
+ if (i != GTK_RESPONSE_YES)
+ return FALSE;
+
+ }
}
rcw_close_all_connections(cnnwin);