-
-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Layer user notes only available for QgsVectorLayer when reading a project with flag QgsProject.FlagDontResolveLayers #58818
Labels
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
Comments
jmkerloch
added
the
Bug
Either a bug report, or a bug fix. Let's hope for the latter!
label
Sep 20, 2024
rouault
added a commit
to rouault/QGIS
that referenced
this issue
Sep 22, 2024
…agDontResolveLayers Fixes qgis#58818
rouault
added a commit
to rouault/QGIS
that referenced
this issue
Sep 22, 2024
…agDontResolveLayers Fixes qgis#58818
nyalldawson
pushed a commit
to nyalldawson/QGIS
that referenced
this issue
Oct 17, 2024
…agDontResolveLayers Fixes qgis#58818 (cherry picked from commit 0c9320c)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
What is the bug or the crash?
When a
QgsProject
is read from a file with flagQgsProject.FlagDontResolveLayers
we can get layer user notes only forQgsVectorLayer
I looked into the code for differences between
QgqVectorLayer
and other layer (for instanceQgsRasterLayer
).For
QgsRasterLayer
the main difference is that we never load symbology if the data provider is not set (consequence of theQgsProject.FlagDontResolveLayers
flags:QGIS/src/core/raster/qgsrasterlayer.cpp
Lines 2410 to 2420 in 6bf3ee0
Steps to reproduce the issue
There should be a layer note available for all layers.
Versions
<style type="text/css"> p, li { white-space: pre-wrap; } </style>Active Python plugins
plugin_reloader
0.11
french_locator_filter
1.1.1
processing
2.12.99
MetaSearch
0.3.6
grassprovider
2.12.99
db_manager
0.1.20
menu_from_project
2.2.0-beta1
Supported QGIS version
New profile
Additional context
I need to access layer user note for the plugin https://plugins.qgis.org/plugins/menu_from_project/
This plugin allow user to have a menu with all layer and group inside a QGIS project.
To avoid manual parsing of the .xml for QGIS project we would like to go with a
QgsProject
that already have all the needed informations.The text was updated successfully, but these errors were encountered: