From 3cd564d89c45fbfc30849d2f713ed32b12d6384a Mon Sep 17 00:00:00 2001 From: eidheim Date: Sat, 2 Jan 2016 11:44:37 +0100 Subject: [PATCH] Fixed freeze when using Go to Stop in menu --- src/window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cc b/src/window.cc index 0ad51fe..483aa59 100644 --- a/src/window.cc +++ b/src/window.cc @@ -962,7 +962,6 @@ void Window::set_menu_actions() { notebook.open(debug_stop_copy.first); if(notebook.get_current_page()!=-1) { auto view=notebook.get_current_view(); - debug_update_stop(); int line_nr=debug_stop_copy.second.first-1; int line_index=debug_stop_copy.second.second-1; @@ -980,6 +979,7 @@ void Window::set_menu_actions() { if(notebook.get_current_page()!=-1 && notebook.get_current_view()==view) view->scroll_to(view->get_buffer()->get_insert(), 0.0, 1.0, 0.5); } + debug_update_stop(); } } }