From 106b392046318fe414f071a63bbff9efe078204b Mon Sep 17 00:00:00 2001 From: Felix Domke Date: Thu, 12 Apr 2007 15:10:20 +0000 Subject: [PATCH] add comment --- lib/gui/elistbox.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/gui/elistbox.cpp b/lib/gui/elistbox.cpp index 3c188ad6..c21f363f 100644 --- a/lib/gui/elistbox.cpp +++ b/lib/gui/elistbox.cpp @@ -58,6 +58,9 @@ void eListbox::setContent(iListboxContent *content) if (content) m_content->setListbox(this); entryReset(); + /* if oldsel != m_selected, selectionChanged was already + emitted in entryReset. we want it in any case, so otherwise, + emit it now. */ if (oldsel == m_selected) /* emit */ selectionChanged(); } -- 2.30.2