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();