Skip to content

Commit

Permalink
Avoid crash with in-editable QgsCheckableComboBox
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn authored and nyalldawson committed Feb 13, 2022
1 parent bbfa18f commit d3e5457
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/qgscheckablecombobox.cpp
Expand Up @@ -299,6 +299,10 @@ void QgsCheckableComboBox::updateCheckedItems()

void QgsCheckableComboBox::updateDisplayText()
{
// There is only a line edit if the combobox is in editable state
if ( !lineEdit() )
return;

QString text;
const QStringList items = checkedItems();
if ( items.isEmpty() )
Expand Down

0 comments on commit d3e5457

Please sign in to comment.