Skip to content

Commit

Permalink
FIX segmentation fault in QgsOptions::pageWidgetNameMap : objectName
Browse files Browse the repository at this point in the history
  • Loading branch information
lbartoletti authored and nyalldawson committed Sep 7, 2018
1 parent 8fa5b04 commit 670760b
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions src/app/qgsoptions.cpp
Expand Up @@ -1140,9 +1140,12 @@ QMap< QString, QString > QgsOptions::pageWidgetNameMap()
{
QWidget *currentPage = mOptionsStackedWidget->widget( idx );
QListWidgetItem *item = mOptionsListWidget->item( idx );
QString title = item->text();
QString name = currentPage->objectName();
pageNames.insert( title, name );
if ( currentPage && item )
{
QString title = item->text();
QString name = currentPage->objectName();
pageNames.insert( title, name );
}
}
return pageNames;
}
Expand Down

0 comments on commit 670760b

Please sign in to comment.