Don't emit selectionChanged if index is invalid.
This commit is contained in:
@@ -138,9 +138,12 @@ namespace glabels
|
||||
/// onMenuKeySelected slot
|
||||
///
|
||||
void FieldCombo::onIndexChanged( int index )
|
||||
{
|
||||
if ( index >= 0 )
|
||||
{
|
||||
emit selectionChanged();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
} // namespace glabels
|
||||
|
||||
Reference in New Issue
Block a user