From 594a926dcddc101aa972c5ec0287d5cf555b5610 Mon Sep 17 00:00:00 2001 From: eidheim Date: Tue, 1 Sep 2015 14:27:13 +0200 Subject: [PATCH] More fixes to status. --- src/notebook.cc | 2 -- src/window.cc | 2 ++ 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/notebook.cc b/src/notebook.cc index 27addd0..84dd2a9 100644 --- a/src/notebook.cc +++ b/src/notebook.cc @@ -172,8 +172,6 @@ bool Notebook::close_current_page() { } int page = get_current_page(); remove_page(page); - if(get_current_page()==-1) - Singleton::status()->set_text(""); auto source_view=source_views.at(page); if(auto source_clang_view=dynamic_cast(source_view)) source_clang_view->async_delete(); diff --git a/src/window.cc b/src/window.cc index e7004eb..6ae39b2 100644 --- a/src/window.cc +++ b/src/window.cc @@ -327,6 +327,8 @@ void Window::create_menu() { notebook.close_current_page(); if(notebook.get_current_page()!=-1) Singleton::status()->set_text(notebook.get_current_view()->status); + else + Singleton::status()->set_text(""); }); menu.action_group->add(Gtk::Action::create("HelpAbout", "About"), [this] () { about.show();