Describe the bug
When you try to change the labels properties on a non-editable layer (MapInfo layer for example), the message "Cannot change "xxx" - the layer "XXX" could not be editable" appears
How to Reproduce
See the video attached
On a non-editable layer with labels, click on the Cahnge label properties icon, and try to modify some properties of a label
The error appears
QGIS and OS versions
QGIS version
3.16.5-Hannover
QGIS code revision
58ba7c1ed6
Compiled against Qt
5.11.2
Running against Qt
5.11.2
Compiled against GDAL/OGR
3.1.4
Running against GDAL/OGR
3.1.4
Compiled against GEOS
3.8.1-CAPI-1.13.3
Running against GEOS
3.8.1-CAPI-1.13.3
Compiled against SQLite
3.29.0
Running against SQLite
3.29.0
PostgreSQL Client Version
11.5
SpatiaLite Version
4.3.0
QWT Version
6.1.3
QScintilla2 Version
2.10.8
Compiled against PROJ
6.3.2
Running against PROJ
Rel. 6.3.2, May 1st, 2020
OS Version
Windows 10 (10.0)
Active python plugins
cadastre;
localiserparcelle;
OSMDownloader;
SgmDxfImportPro;
SgmExpressionFunctions;
SgmPfa;
StreetView;
db_manager;
processing
Additional context
Regression. It worked in QGIS 3.10
Describe the bug When you try to change the labels properties on a non-editable layer (MapInfo layer for example), the message "Cannot change "xxx" - the layer "XXX" could not be editable" appears
How to Reproduce
QGIS and OS versions
QGIS version 3.16.5-Hannover QGIS code revision 58ba7c1ed6 Compiled against Qt 5.11.2 Running against Qt 5.11.2 Compiled against GDAL/OGR 3.1.4 Running against GDAL/OGR 3.1.4 Compiled against GEOS 3.8.1-CAPI-1.13.3 Running against GEOS 3.8.1-CAPI-1.13.3 Compiled against SQLite 3.29.0 Running against SQLite 3.29.0 PostgreSQL Client Version 11.5 SpatiaLite Version 4.3.0 QWT Version 6.1.3 QScintilla2 Version 2.10.8 Compiled against PROJ 6.3.2 Running against PROJ Rel. 6.3.2, May 1st, 2020 OS Version Windows 10 (10.0) Active python plugins cadastre; localiserparcelle; OSMDownloader; SgmDxfImportPro; SgmExpressionFunctions; SgmPfa; StreetView; db_manager; processing
Additional context Regression. It worked in QGIS 3.10
https://user-images.githubusercontent.com/55922863/114899064-f1e74e80-9e12-11eb-80e4-d11432e66614.mp4 COMMUNE.zip