Skip to content
Permalink
Browse files

FIX segmentation fault in QgsOptions::pageWidgetNameMap : objectName

  • Loading branch information
lbartoletti authored and nyalldawson committed Sep 7, 2018
1 parent 8fa5b04 commit 670760b49fe14abbe41070302f38f51046f0d12b
Showing with 6 additions and 3 deletions.
  1. +6 −3 src/app/qgsoptions.cpp
@@ -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;
}

0 comments on commit 670760b

Please sign in to comment.
You can’t perform that action at this time.