Skip to content

Commit

Permalink
Fix mesh layer properties dialog doesn't open at the temporal page
Browse files Browse the repository at this point in the history
when clicking the temporal icon for a mesh layer
  • Loading branch information
nyalldawson authored and github-actions[bot] committed Mar 23, 2021
1 parent cc77068 commit 6ff4bc1
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -15938,6 +15938,8 @@ void QgisApp::showLayerProperties( QgsMapLayer *mapLayer, const QString &page )
QgsRasterLayerProperties *rasterLayerPropertiesDialog = new QgsRasterLayerProperties( mapLayer, mMapCanvas, this );
if ( !page.isEmpty() )
rasterLayerPropertiesDialog->setCurrentPage( page );
else
rasterLayerPropertiesDialog->restoreLastPage();

// Cannot use exec here due to raster transparency map tool:
// in order to pass focus to the canvas, the dialog needs to
Expand Down Expand Up @@ -15966,6 +15968,11 @@ void QgisApp::showLayerProperties( QgsMapLayer *mapLayer, const QString &page )
meshLayerPropertiesDialog.addPropertiesPageFactory( factory );
}

if ( !page.isEmpty() )
meshLayerPropertiesDialog.setCurrentPage( page );
else
meshLayerPropertiesDialog.restoreLastPage();

mMapStyleWidget->blockUpdates( true );
if ( meshLayerPropertiesDialog.exec() )
{
Expand Down Expand Up @@ -16022,6 +16029,8 @@ void QgisApp::showLayerProperties( QgsMapLayer *mapLayer, const QString &page )
QgsVectorTileLayerProperties vectorTileLayerPropertiesDialog( qobject_cast<QgsVectorTileLayer *>( mapLayer ), mMapCanvas, visibleMessageBar(), this );
if ( !page.isEmpty() )
vectorTileLayerPropertiesDialog.setCurrentPage( page );
else
vectorTileLayerPropertiesDialog.restoreLastPage();

mMapStyleWidget->blockUpdates( true );
if ( vectorTileLayerPropertiesDialog.exec() )
Expand Down

0 comments on commit 6ff4bc1

Please sign in to comment.