From d9a41c66f08dfec65a36628d9324b3fc2ab45524 Mon Sep 17 00:00:00 2001 From: Jim Evins Date: Sat, 30 Mar 2019 18:59:15 -0400 Subject: [PATCH] Don't emit selectionChanged if index is invalid. --- glabels/FieldCombo.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/glabels/FieldCombo.cpp b/glabels/FieldCombo.cpp index 0a41107..c2da4a7 100644 --- a/glabels/FieldCombo.cpp +++ b/glabels/FieldCombo.cpp @@ -139,7 +139,10 @@ namespace glabels /// void FieldCombo::onIndexChanged( int index ) { - emit selectionChanged(); + if ( index >= 0 ) + { + emit selectionChanged(); + } }