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