[network/ruqola] src/widgets: Check account
Laurent Montel <[email protected]>
| Newsgroups | gmane.comp.kde.cvs |
|---|---|
| Message-ID | <[email protected]> |
Git commit 2cd837c3015b7fb47878768c6a8fbe1abc2c9a05 by Laurent Montel.
Committed on 13/08/2026 at 16:50.
Pushed by mlaurent into branch 'master'.
Check account
M +1 -1 src/widgets/ruqolamainwindow.cpp
https://invent.kde.org/network/ruqola/-/commit/2cd837c3015b7fb47878768c6a8fbe1abc2c9a05
diff --git a/src/widgets/ruqolamainwindow.cpp b/src/widgets/ruqolamainwindow.cpp
index a1d0d2c07c..edc6d674f3 100644
--- a/src/widgets/ruqolamainwindow.cpp
+++ b/src/widgets/ruqolamainwindow.cpp
@@ -1029,7 +1029,7 @@ void RuqolaMainWindow::slotMissingChannelPassword(const RocketChatRestApi::Chann
void RuqolaMainWindow::slotDisableActions(bool loginPageActivated)
{
- const bool offline = mCurrentRocketChatAccount->offlineMode();
+ const bool offline = mCurrentRocketChatAccount && mCurrentRocketChatAccount->offlineMode();
mCreateNewChannel->setEnabled(!loginPageActivated && canCreateChannels() && !offline);
mCreateDirectMessages->setEnabled(!loginPageActivated && canCreateDirectMessages() && !offline);
mLogout->setEnabled(!loginPageActivated);