summaryrefslogtreecommitdiff
path: root/src/statusbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/statusbar.cpp')
-rw-r--r--src/statusbar.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/statusbar.cpp b/src/statusbar.cpp
index c2c54862..4729c6ad 100644
--- a/src/statusbar.cpp
+++ b/src/statusbar.cpp
@@ -69,7 +69,9 @@ void StatusBar::setProgress(int percent)
void StatusBar::setNotifications(bool hasNotifications)
{
- m_notifications->set(hasNotifications);
+ if (m_notifications) {
+ m_notifications->set(hasNotifications);
+ }
}
void StatusBar::setAPI(const APIStats& stats, const APIUserAccount& user)