From 40c5f0432c54533f96e107c3e22d44f07eeef176 Mon Sep 17 00:00:00 2001 From: Max Paperno Date: Sat, 2 Jun 2018 21:05:15 -0400 Subject: [PATCH] [Companion] AutoComboBox - fix possible crash with null field. --- companion/src/shared/autocombobox.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/companion/src/shared/autocombobox.h b/companion/src/shared/autocombobox.h index c7aea30bf..9851e8df6 100644 --- a/companion/src/shared/autocombobox.h +++ b/companion/src/shared/autocombobox.h @@ -93,7 +93,7 @@ class AutoComboBox: public QComboBox { for (int i=0; ifield == i) + if (this->field && *this->field == i) setCurrentIndex(i); } }