Browse Source

Rename entry does not show anymore when no token is found.

merge-requests/365/head
eidheim 10 years ago
parent
commit
4af4189657
  1. 2
      src/window.cc

2
src/window.cc

@ -879,7 +879,7 @@ void Window::rename_token_entry() {
if(notebook.get_current_page()!=-1) { if(notebook.get_current_page()!=-1) {
if(notebook.get_current_view()->get_token) { if(notebook.get_current_view()->get_token) {
auto token=std::make_shared<Source::Token>(notebook.get_current_view()->get_token()); auto token=std::make_shared<Source::Token>(notebook.get_current_view()->get_token());
if(token) { if(*token) {
entry_box.labels.emplace_back(); entry_box.labels.emplace_back();
auto label_it=entry_box.labels.begin(); auto label_it=entry_box.labels.begin();
label_it->update=[label_it](int state, const std::string& message){ label_it->update=[label_it](int state, const std::string& message){

Loading…
Cancel
Save