summary refs log tree commit diff
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2021-08-30 08:00:35 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2021-09-11 19:35:31 -0400
commitc991f20284620ca0483b00b828c3ae574a14a2ef (patch)
tree60e9cc2e45192890e72eec12a43cef8400634a03
parentAdd some fancy effects to jdenticon (diff)
downloadnheko-c991f20284620ca0483b00b828c3ae574a14a2ef.tar.xz
Make sure jdenticon toggle is always initialized
-rw-r--r--src/UserSettingsPage.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/UserSettingsPage.cpp b/src/UserSettingsPage.cpp
index 7df9d55d..60ba18aa 100644
--- a/src/UserSettingsPage.cpp
+++ b/src/UserSettingsPage.cpp
@@ -813,6 +813,8 @@ UserSettingsPage::UserSettingsPage(QSharedPointer<UserSettings> settings, QWidge
                 useIdenticon_ = new Toggle{this};
                 useIdenticon_->setChecked(settings_->useIdenticon());
         }
+        else
+            useIdenticon_ = nullptr;
 
         if (!settings_->tray()) {
                 startInTrayToggle_->setState(false);