diff options
author | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2022-01-24 11:23:41 +0300 |
---|---|---|
committer | Antenore Gatta (tmow) <antenore@simbiosi.org> | 2022-01-24 11:23:41 +0300 |
commit | d47b0276e608ce4edb0405bee43fa1fc00dd0a54 (patch) | |
tree | 75fb762683a04654a56b9e98a9a1ab98b12799b3 /src | |
parent | 64b91d7acaa399256c3b8b4ae5eff3c1bcd1f495 (diff) | |
parent | 2de939c55e3510d1a61f3b6c0c54cff66e73cce3 (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.c | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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); |