From ef7804bdeaf3f25c0cd23f7139f6d9f8cd39438e Mon Sep 17 00:00:00 2001 From: eidheim Date: Mon, 19 Oct 2015 21:13:16 +0200 Subject: [PATCH] Fixed activation/deactivation of Auto-indent buffer menu item. --- src/window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cc b/src/window.cc index 58dddbc..345cca2 100644 --- a/src/window.cc +++ b/src/window.cc @@ -105,7 +105,7 @@ Window::Window() : box(Gtk::ORIENTATION_VERTICAL), compiling(false) { notebook.get_current_view()->search_highlight(last_search, case_sensitive_search, regex_search); } - if(auto menu_item=dynamic_cast(menu.ui_manager->get_widget("/MenuBar/SourceMenu/SourceIndentationAutoIndentBuffer"))) + if(auto menu_item=dynamic_cast(menu.ui_manager->get_widget("/MenuBar/SourceMenu/SourceIndentation/SourceIndentationAutoIndentBuffer"))) menu_item->set_sensitive((bool)notebook.get_current_view()->auto_indent); if(auto menu_item=dynamic_cast(menu.ui_manager->get_widget("/MenuBar/SourceMenu/SourceGotoDeclaration")))