Browse Source

Notebook: correct tab should now be activated after tab close

merge-requests/365/head
eidheim 10 years ago
parent
commit
2db73efe0a
  1. 5
      src/notebook.cc

5
src/notebook.cc

@ -250,9 +250,10 @@ void Notebook::open(const boost::filesystem::path &file_path, size_t notebook_in
notebook.set_current_page(notebook.get_n_pages()-1); notebook.set_current_page(notebook.get_n_pages()-1);
last_index=-1; last_index=-1;
if(last_view) { if(last_view) {
auto notebook_page=get_notebook_page(get_index(last_view)); auto index=get_index(last_view);
auto notebook_page=get_notebook_page(index);
if(notebook_page.first==notebook_index) if(notebook_page.first==notebook_index)
last_index=notebook_page.second; last_index=index;
} }
set_focus_child(*source_views.back()); set_focus_child(*source_views.back());

Loading…
Cancel
Save