Skip to content

Commit 00f943d

Browse files
committed
Fixed ComboBox::OnSelect not being emitted when selecting the item which is already currently active from the drop-down.
1 parent 65b54c5 commit 00f943d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/SFGUI/ComboBox.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ void ComboBox::HandleMouseButtonEvent( sf::Mouse::Button button, bool press, int
307307

308308
auto emit_select = false;
309309

310-
if( ( m_highlighted_item != NONE ) && ( m_active_item != m_highlighted_item ) ) {
310+
if( m_highlighted_item != NONE ) {
311311
m_active_item = m_highlighted_item;
312312
emit_select = true;
313313
}

0 commit comments

Comments
 (0)