mirror of
https://github.com/qgis/QGIS.git
synced 2025-03-03 00:02:25 -05:00
We currently call saveSettings from the QgsCompoundColorWidget destructor. Since we restore the custom colors when the constructor runs, any changes made will be lost if a second QgsCompoundColorWidget is created before the first is destroyed. This adds a hideEvent handler, and saves the settings from there. Fixes #37749.