From e45b0b121191eaccc5242c0516c3c99e71a335cf Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 1 Sep 2015 14:16:24 +0200 Subject: [PATCH] Now updating status field when closing tabs. --- src/window.cc | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/window.cc b/src/window.cc index 1f3fcca..e7004eb 100644 --- a/src/window.cc +++ b/src/window.cc @@ -325,6 +325,8 @@ void Window::create_menu() { }); menu.action_group->add(Gtk::Action::create("WindowCloseTab", "Close Tab"), Gtk::AccelKey(menu.key_map["close_tab"]), [this]() { notebook.close_current_page(); + if(notebook.get_current_page()!=-1) + Singleton::status()->set_text(notebook.get_current_view()->status); }); menu.action_group->add(Gtk::Action::create("HelpAbout", "About"), [this] () { about.show();