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
diff options
context:
space:
mode:
authorToolsDevler <info@toolsdevler.net>2020-12-30 19:03:10 +0300
committerToolsDevler <info@toolsdevler.net>2020-12-30 19:03:22 +0300
commitd138d3488498b5d7181075ebb2e674a7af6ab9a8 (patch)
tree7af4e9cd77b1b23e720aacb2d7beb26ac37ef754
parenta9c6d0fa07e344db3455e2cb621645f1f5f4e432 (diff)
Revert "Show confirmation dialog if window is being closed"
This reverts commit 829f0d34734e6d3248b10cb40865b952ae478bb3.
-rw-r--r--po/de.po6
-rw-r--r--src/rcw.c19
2 files changed, 10 insertions, 15 deletions
diff --git a/po/de.po b/po/de.po
index f15811efb..9be271ff6 100644
--- a/po/de.po
+++ b/po/de.po
@@ -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
diff --git a/src/rcw.c b/src/rcw.c
index 568836af5..a4f00ddc1 100644
--- a/src/rcw.c
+++ b/src/rcw.c
@@ -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);