summary refs log tree commit diff
path: root/resources/qml/dialogs
diff options
context:
space:
mode:
authorLoren Burkholder <computersemiexpert@outlook.com>2022-05-30 22:58:26 -0400
committerLoren Burkholder <computersemiexpert@outlook.com>2022-06-02 14:19:50 -0400
commitcb4d7234c7f7eb98a417b296a2cb050f59fc17a3 (patch)
tree2a15a0b107c594b0a60cd4f459169818da928189 /resources/qml/dialogs
parentTranslated using Weblate (Estonian) (diff)
downloadnheko-cb4d7234c7f7eb98a417b296a2cb050f59fc17a3.tar.xz
Indicate if no topic is set
Diffstat (limited to 'resources/qml/dialogs')
-rw-r--r--resources/qml/dialogs/RoomSettings.qml7
1 files changed, 6 insertions, 1 deletions
diff --git a/resources/qml/dialogs/RoomSettings.qml b/resources/qml/dialogs/RoomSettings.qml
index 332a7b09..bc23a6ad 100644
--- a/resources/qml/dialogs/RoomSettings.qml
+++ b/resources/qml/dialogs/RoomSettings.qml
@@ -194,7 +194,12 @@ ApplicationWindow {
 
                 readOnly: !isTopicEditingAllowed
                 textFormat: isTopicEditingAllowed ? TextEdit.PlainText : TextEdit.RichText
-                text: isTopicEditingAllowed ? roomSettings.plainRoomTopic : roomSettings.roomTopic
+                text: {
+                    if (roomSettings.plainRoomTopic === "")
+                        return qsTr("<i>No topic set</i>")
+                    else
+                        return isTopicEditingAllowed ? roomSettings.plainRoomTopic : roomSettings.roomTopic
+                }
                 wrapMode: TextEdit.WordWrap
                 background: null
                 selectByMouse: !Settings.mobileMode