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 committed Mar 25, 2021
1 parent 7c538c4 commit 035fbf0
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/app/qgisapp.cpp
Expand Up @@ -16273,6 +16273,8 @@ void QgisApp::showLayerProperties( QgsMapLayer *mapLayer, const QString &page )

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 @@ -16301,6 +16303,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 @@ -16357,6 +16364,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 035fbf0

Please sign in to comment.