From 22e2888b01b7b9d0a8df568f25dbe06addd51710 Mon Sep 17 00:00:00 2001 From: Mikko Rasa Date: Thu, 13 Nov 2014 23:46:59 +0200 Subject: [PATCH] If the active list item is refreshed, mark it as such --- source/list.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/source/list.cpp b/source/list.cpp index 83af932..10c5af8 100644 --- a/source/list.cpp +++ b/source/list.cpp @@ -123,6 +123,8 @@ List::Item *List::create_item(unsigned index) item = item_factory->create_item(index); else item = new BasicItem(data->get_string(index)); + if(static_cast(index)==sel_index) + item->set_active(true); add(*item); item->autosize(); item->signal_autosize_changed.connect(sigc::bind(sigc::mem_fun(this, &List::item_autosize_changed), item)); -- 2.43.0