summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/terminal-window.c7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/terminal-window.c b/src/terminal-window.c
index 0d3d1e9..aa5288f 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -3553,14 +3553,11 @@ confirm_close_window_or_tab (TerminalWindow *window,
GtkBuilder *builder;
TerminalWindowPrivate *priv = window->priv;
GtkWidget *dialog;
- gboolean do_confirm;
gboolean has_processes;
int n_tabs;
char *confirm_msg;
- do_confirm = g_settings_get_boolean (settings_global, "confirm-window-close");
-
- if (!do_confirm)
+ if (!g_settings_get_boolean (settings_global, "confirm-window-close"))
return FALSE;
if (screen)
@@ -3572,8 +3569,6 @@ confirm_close_window_or_tab (TerminalWindow *window,
{
GList *tabs, *t;
- do_confirm = FALSE;
-
tabs = terminal_window_list_screen_containers (window);
n_tabs = g_list_length (tabs);