From 4af41896573e9fc68a0c7fa3db4921b98b638a58 Mon Sep 17 00:00:00 2001 From: eidheim Date: Wed, 18 Nov 2015 19:11:11 +0100 Subject: [PATCH] Rename entry does not show anymore when no token is found. --- src/window.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/window.cc b/src/window.cc index 3d8576d..d2b5526 100644 --- a/src/window.cc +++ b/src/window.cc @@ -879,7 +879,7 @@ void Window::rename_token_entry() { if(notebook.get_current_page()!=-1) { if(notebook.get_current_view()->get_token) { auto token=std::make_shared(notebook.get_current_view()->get_token()); - if(token) { + if(*token) { entry_box.labels.emplace_back(); auto label_it=entry_box.labels.begin(); label_it->update=[label_it](int state, const std::string& message){