Skip to content

Commit

Permalink
fix #30003 crash in mesh calculator
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterPetrik authored and nyalldawson committed May 30, 2019
1 parent e4582c9 commit 3f9a07e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/mesh/qgsmeshcalculatordialog.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,9 @@ void QgsMeshCalculatorDialog::useAllTimesFromLayer()

QString QgsMeshCalculatorDialog::currentDatasetGroup() const
{
if ( mDatasetsListWidget->count() == 0 )
return QString();

const QList<QListWidgetItem *> items = mDatasetsListWidget->selectedItems();
if ( !items.empty() )
return items[0]->text();
Expand Down

0 comments on commit 3f9a07e

Please sign in to comment.