add comment
authorFelix Domke <tmbinc@elitedvb.net>
Thu, 12 Apr 2007 15:10:20 +0000 (15:10 +0000)
committerFelix Domke <tmbinc@elitedvb.net>
Thu, 12 Apr 2007 15:10:20 +0000 (15:10 +0000)
lib/gui/elistbox.cpp

index 3c188ad..c21f363 100644 (file)
@@ -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();
 }