Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix mesh layer properties dialog doesn't open at the temporal page
when clicking the temporal icon for a mesh layer
- Loading branch information
Showing
with
9 additions
and
0 deletions.
-
+9
−0
src/app/qgisapp.cpp
|
|
|
|
|
|
|
|
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 |
|
|
|
|
meshLayerPropertiesDialog.addPropertiesPageFactory( factory ); |
|
|
} |
|
|
|
|
|
if ( !page.isEmpty() ) |
|
|
meshLayerPropertiesDialog.setCurrentPage( page ); |
|
|
else |
|
|
meshLayerPropertiesDialog.restoreLastPage(); |
|
|
|
|
|
mMapStyleWidget->blockUpdates( true ); |
|
|
if ( meshLayerPropertiesDialog.exec() ) |
|
|
{ |
|
|
|
|
QgsVectorTileLayerProperties vectorTileLayerPropertiesDialog( qobject_cast<QgsVectorTileLayer *>( mapLayer ), mMapCanvas, visibleMessageBar(), this ); |
|
|
if ( !page.isEmpty() ) |
|
|
vectorTileLayerPropertiesDialog.setCurrentPage( page ); |
|
|
else |
|
|
vectorTileLayerPropertiesDialog.restoreLastPage(); |
|
|
|
|
|
mMapStyleWidget->blockUpdates( true ); |
|
|
if ( vectorTileLayerPropertiesDialog.exec() ) |