Skip to content

Commit

Permalink
Resolve cpu spikes when options dialog is shown
Browse files Browse the repository at this point in the history
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

(cherry picked from commit 3b29dba)
  • Loading branch information
nyalldawson committed Nov 21, 2019
1 parent fb37435 commit 4cfd354
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgssettingstree.h
Expand Up @@ -99,7 +99,7 @@ class QgsSettingsTree : public QTreeWidget

QgsSettings *mSettings = nullptr;
QTimer mRefreshTimer;
bool mAutoRefresh = true;
bool mAutoRefresh = false;
QIcon mGroupIcon;
QIcon mKeyIcon;

Expand Down

0 comments on commit 4cfd354

Please sign in to comment.