Skip to content
Permalink
Browse files
Merge pull request #48538 from elpaso/bugfix-fix-unreported-crash-ter…
…rain-properties

Fix crash when opening project properties
  • Loading branch information
elpaso committed May 13, 2022
2 parents 99d3bf7 + cba1fba commit e2a8ebcf0d5c6dd81cb2441ebcbe6614e62e61ba
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 e2a8ebc

Please sign in to comment.