summary refs log tree commit diff
path: root/src/TopRoomBar.cc
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-02-02 10:50:02 -0700
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-02-02 10:51:07 -0700
commit43ba4d5ed5fa06fa5d5f093c6c3c0b12307dbb43 (patch)
tree0f183fc010bc0fbb1e8716352bb6e896acb228be /src/TopRoomBar.cc
parentAdded AppData manifest file for Gnome Software (#224) (diff)
downloadnheko-43ba4d5ed5fa06fa5d5f093c6c3c0b12307dbb43.tar.xz
Handle case with no available rooms
fixes #181
Diffstat (limited to 'src/TopRoomBar.cc')
-rw-r--r--src/TopRoomBar.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/TopRoomBar.cc b/src/TopRoomBar.cc

index dc597bc9..d34e59ad 100644 --- a/src/TopRoomBar.cc +++ b/src/TopRoomBar.cc
@@ -144,6 +144,9 @@ TopRoomBar::TopRoomBar(QWidget *parent) menu_->addAction(leaveRoom_); connect(settingsBtn_, &QPushButton::clicked, this, [=]() { + if (roomSettings_.isNull()) + return; + if (roomSettings_->isNotificationsEnabled()) toggleNotifications_->setText(tr("Disable notifications")); else