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
  • Loading branch information
nyalldawson committed Nov 18, 2019
1 parent 617955a commit 3b29dba
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 3b29dba

Please sign in to comment.