Resolve cpu spikes when options dialog is shown

Disable auto-update of the advanced settings tree widget. This is causing
CPU spikes every 2 seconds while the dialog is open. It's useless for QGIS,
because this dialog is modal and blocking, and changes to settings aren't
saved until the dialog is dismissed. So basically nothing should be updating
these settings while the dialog is opened anyway...

Fixes #32892
This commit is contained in:
Nyall Dawson 2019-11-18 14:07:12 +10:00
parent 617955ac1e
commit 3b29dbafa6

View File

@ -99,7 +99,7 @@ class QgsSettingsTree : public QTreeWidget
QgsSettings *mSettings = nullptr;
QTimer mRefreshTimer;
bool mAutoRefresh = true;
bool mAutoRefresh = false;
QIcon mGroupIcon;
QIcon mKeyIcon;