[Xfce4-commits] [apps/xfce4-terminal] 01/01: Do not store working dir when closing the last tab

noreply at xfce.org noreply at xfce.org
Mon Aug 8 16:39:48 CEST 2016


This is an automated email from the git hooks/post-receive script.

f2404 pushed a commit to branch master
in repository apps/xfce4-terminal.

commit 47e0b8c9c3909dc822008028c25c49d18538c59b
Author: Igor <f2404 at yandex.ru>
Date:   Mon Aug 8 17:39:43 2016 +0300

    Do not store working dir when closing the last tab
---
 terminal/terminal-window.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/terminal/terminal-window.c b/terminal/terminal-window.c
index 26f2be0..d56e049 100644
--- a/terminal/terminal-window.c
+++ b/terminal/terminal-window.c
@@ -930,11 +930,6 @@ terminal_window_notebook_page_removed (GtkNotebook    *notebook,
   terminal_return_if_fail (TERMINAL_IS_SCREEN (child));
   terminal_return_if_fail (TERMINAL_IS_WINDOW (window));
 
-  /* store working dir of the tab being closed */
-  g_free (window->last_working_directory);
-  window->last_working_directory =
-      g_strdup (terminal_screen_get_working_directory (TERMINAL_SCREEN (child)));
-
   /* unset the go menu item */
   g_object_set_qdata (G_OBJECT (child), tabs_menu_action_quark, NULL);
 
@@ -957,6 +952,11 @@ terminal_window_notebook_page_removed (GtkNotebook    *notebook,
       return;
     }
 
+  /* store working dir of the tab being closed */
+  g_free (window->last_working_directory);
+  window->last_working_directory =
+      g_strdup (terminal_screen_get_working_directory (TERMINAL_SCREEN (child)));
+
   /* show the tabs when needed */
   terminal_window_notebook_show_tabs (window);
 

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list