Skip to content

Commit 3f9a07e

Browse files
PeterPetriknyalldawson
authored andcommittedMay 30, 2019
fix #30003 crash in mesh calculator
1 parent e4582c9 commit 3f9a07e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed
 

‎src/app/mesh/qgsmeshcalculatordialog.cpp

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,9 @@ void QgsMeshCalculatorDialog::useAllTimesFromLayer()
464464

465465
QString QgsMeshCalculatorDialog::currentDatasetGroup() const
466466
{
467+
if ( mDatasetsListWidget->count() == 0 )
468+
return QString();
469+
467470
const QList<QListWidgetItem *> items = mDatasetsListWidget->selectedItems();
468471
if ( !items.empty() )
469472
return items[0]->text();

0 commit comments

Comments
 (0)
Please sign in to comment.