diff options
author | ToolsDevler <info@toolsdevler.net> | 2020-12-30 19:03:10 +0300 |
---|---|---|
committer | ToolsDevler <info@toolsdevler.net> | 2020-12-30 19:03:22 +0300 |
commit | d138d3488498b5d7181075ebb2e674a7af6ab9a8 (patch) | |
tree | 7af4e9cd77b1b23e720aacb2d7beb26ac37ef754 | |
parent | a9c6d0fa07e344db3455e2cb621645f1f5f4e432 (diff) |
Revert "Show confirmation dialog if window is being closed"
This reverts commit 829f0d34734e6d3248b10cb40865b952ae478bb3.
-rw-r--r-- | po/de.po | 6 | ||||
-rw-r--r-- | src/rcw.c | 19 |
2 files changed, 10 insertions, 15 deletions
@@ -698,12 +698,8 @@ msgstr "Remmina Remote-Desktop-Client" #: src/rcw.c:652 #, c-format msgid "" -"Are you sure you want to close the active connection in the current window?" -msgid_plural "" "Are you sure you want to close %i active connections in the current window?" -msgstr[0] "" -"Wollen Sie wirklich die aktive Verbindung im aktuellen Fenster schließen?" -msgstr[1] "" +msgstr "" "Wollen Sie wirklich %i aktive Verbindungen im aktuellen Fenster schließen?" #: src/rcw.c:1372 @@ -646,16 +646,15 @@ gboolean rcw_delete(RemminaConnectionWindow *cnnwin) if (cnnwin->priv->on_delete_confirm_mode != RCW_ONDELETE_NOCONFIRM) { n = gtk_notebook_get_n_pages(notebook); - dialog = gtk_message_dialog_new(GTK_WINDOW(cnnwin), GTK_DIALOG_MODAL, GTK_MESSAGE_QUESTION, - GTK_BUTTONS_YES_NO, - ngettext( - "Are you sure you want to close the active connection in the current window?", - "Are you sure you want to close %i active connections in the current window?", - n)); - i = gtk_dialog_run(GTK_DIALOG(dialog)); - gtk_widget_destroy(dialog); - if (i != GTK_RESPONSE_YES) - return FALSE; + if (n > 1) { + 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 %i active connections in the current window?"), n); + i = gtk_dialog_run(GTK_DIALOG(dialog)); + gtk_widget_destroy(dialog); + if (i != GTK_RESPONSE_YES) + return FALSE; + } } rcw_close_all_connections(cnnwin); |