Skip to content
Permalink
Browse files
Fix crash when opening project properties
crashed only in debug mode because of checkPageWidgetNameMap
  • Loading branch information
elpaso committed May 13, 2022
1 parent 99d3bf7 commit cba1fbaad1b7f8684a9fabe3c994f3b94dfa097d
Showing with 1 addition and 13 deletions.
  1. +1 −10 src/app/project/qgsprojectelevationsettingswidget.cpp
  2. +0 −3 src/app/project/qgsprojectelevationsettingswidget.h
@@ -150,20 +150,11 @@ bool QgsProjectElevationSettingsWidget::isValid()
//

QgsProjectElevationSettingsWidgetFactory::QgsProjectElevationSettingsWidgetFactory( QObject *parent )
: QgsOptionsWidgetFactory()
: QgsOptionsWidgetFactory( tr( "Terrain" ), QgsApplication::getThemeIcon( QStringLiteral( "mLayoutItem3DMap.svg" ) ) )
{
setParent( parent );
}

QString QgsProjectElevationSettingsWidgetFactory::title() const
{
return tr( "Terrain" );
}

QIcon QgsProjectElevationSettingsWidgetFactory::icon() const
{
return QgsApplication::getThemeIcon( QStringLiteral( "mLayoutItem3DMap.svg" ) );
}

QgsOptionsPageWidget *QgsProjectElevationSettingsWidgetFactory::createWidget( QWidget *parent ) const
{
@@ -46,9 +46,6 @@ class QgsProjectElevationSettingsWidgetFactory : public QgsOptionsWidgetFactory
public:
explicit QgsProjectElevationSettingsWidgetFactory( QObject *parent = nullptr );

QString title() const override;
QIcon icon() const override;

QgsOptionsPageWidget *createWidget( QWidget *parent = nullptr ) const override;
};

0 comments on commit cba1fba

Please sign in to comment.