Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Re-enable QgsProjectProperties::checkPageWidgetNameMap
  • Loading branch information
mhugent committed Jan 5, 2019
1 parent 583674b commit a145847
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/app/qgsprojectproperties.cpp
Expand Up @@ -2313,7 +2313,6 @@ void QgsProjectProperties::showHelp()

void QgsProjectProperties::checkPageWidgetNameMap()
{
#if 0
const QMap< QString, QString > pageNames = QgisApp::instance()->projectPropertiesPagesMap();
Q_ASSERT_X( pageNames.count() == mOptionsListWidget->count(), "QgsProjectProperties::checkPageWidgetNameMap()", "QgisApp::projectPropertiesPagesMap() is outdated, contains too many entries" );
for ( int idx = 0; idx < mOptionsListWidget->count(); ++idx )
Expand All @@ -2325,7 +2324,6 @@ void QgsProjectProperties::checkPageWidgetNameMap()
Q_ASSERT_X( pageNames.contains( title ), "QgsProjectProperties::checkPageWidgetNameMap()", QStringLiteral( "QgisApp::projectPropertiesPagesMap() is outdated, please update. Missing %1" ).arg( title ).toLocal8Bit().constData() );
Q_ASSERT_X( pageNames.value( title ) == name, "QgsProjectProperties::checkPageWidgetNameMap()", QStringLiteral( "QgisApp::projectPropertiesPagesMap() is outdated, please update. %1 should be %2 not %3" ).arg( title, name, pageNames.value( title ) ).toLocal8Bit().constData() );
}
#endif //0
}

void QgsProjectProperties::setCurrentPage( const QString &pageWidgetName )
Expand Down

0 comments on commit a145847

Please sign in to comment.