summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/application.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/src/application.c b/src/application.c
index c11d52c..0f59221 100644
--- a/src/application.c
+++ b/src/application.c
@@ -123,9 +123,15 @@ mq_application_quit(MqApplication *application, GtkWindow *parent)
}
/* Message */
- message = g_strdup_printf("You are about to close %d tabs "
- "in %d windows. Are you sure you want to continue?",
- num_tabs, num_windows);
+ if (num_windows == 1) {
+ message = g_strdup_printf("You are about to close %d tabs "
+ "in %d window. Are you sure you want to continue?",
+ num_tabs, num_windows);
+ } else {
+ message = g_strdup_printf("You are about to close %d tabs "
+ "in %d windows. Are you sure you want to continue?",
+ num_tabs, num_windows);
+ }
message_label = gtk_label_new(message);
g_free(message);