From 67f1572a18a8c779d0121269cecd6db0ee663904 Mon Sep 17 00:00:00 2001 From: miruka Date: Sat, 11 Jul 2020 22:19:25 -0400 Subject: [PATCH] Fix null account warnings on AddChat pages --- src/gui/Pages/AddChat/CreateRoom.qml | 2 +- src/gui/Pages/AddChat/DirectChat.qml | 2 +- src/gui/Pages/AddChat/JoinRoom.qml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/Pages/AddChat/CreateRoom.qml b/src/gui/Pages/AddChat/CreateRoom.qml index 13e8bba9..c2b464d0 100644 --- a/src/gui/Pages/AddChat/CreateRoom.qml +++ b/src/gui/Pages/AddChat/CreateRoom.qml @@ -8,7 +8,7 @@ import "../../Base/ButtonLayout" HFlickableColumnPage { id: page - enabled: account.presence !== "offline" + enabled: account && account.presence !== "offline" property string userId diff --git a/src/gui/Pages/AddChat/DirectChat.qml b/src/gui/Pages/AddChat/DirectChat.qml index 047149b7..06bb70a1 100644 --- a/src/gui/Pages/AddChat/DirectChat.qml +++ b/src/gui/Pages/AddChat/DirectChat.qml @@ -8,7 +8,7 @@ import "../../Base/ButtonLayout" HFlickableColumnPage { id: page - enabled: account.presence !== "offline" + enabled: account && account.presence !== "offline" property string userId diff --git a/src/gui/Pages/AddChat/JoinRoom.qml b/src/gui/Pages/AddChat/JoinRoom.qml index b21b22fd..40b722d1 100644 --- a/src/gui/Pages/AddChat/JoinRoom.qml +++ b/src/gui/Pages/AddChat/JoinRoom.qml @@ -8,7 +8,7 @@ import "../../Base/ButtonLayout" HFlickableColumnPage { id: page - enabled: account.presence !== "offline" + enabled: account && account.presence !== "offline" property string userId