diff options
author | Emmanuel Guyot <emmanuel.guyot@gmail.com> | 2022-01-24 00:53:53 +0300 |
---|---|---|
committer | Emmanuel Guyot <emmanuel.guyot@gmail.com> | 2022-01-24 01:35:47 +0300 |
commit | dbd73dcbfea559fec974de9af68a986d53ca3f93 (patch) | |
tree | c9de940a9cbdc47f9bc4a35542d386e8a5b05a42 /src/rcw.c | |
parent | d59d78fe8a693031e4e0236312cceb6b28c50e3f (diff) |
Issue 2122 : Confirm on close of window
Diffstat (limited to 'src/rcw.c')
-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?"), n); + i = gtk_dialog_run(GTK_DIALOG(dialog)); + gtk_widget_destroy(dialog); + if (i != GTK_RESPONSE_YES) + return FALSE; + + } } rcw_close_all_connections(cnnwin); |