diff --git a/qml/component/ButtonDelegate.qml b/qml/component/ButtonDelegate.qml index 13c23f0..0953d18 100644 --- a/qml/component/ButtonDelegate.qml +++ b/qml/component/ButtonDelegate.qml @@ -29,7 +29,7 @@ Item { anchors.fill: parent onClicked: { - if(page != null) { + if(page != null && stackView.currentItem != page) { if(stackView.depth === 1) { stackView.replace(page) } else { diff --git a/qml/form/RoomListForm.qml b/qml/form/RoomListForm.qml index f040595..b29062b 100644 --- a/qml/form/RoomListForm.qml +++ b/qml/form/RoomListForm.qml @@ -71,8 +71,19 @@ Item { Layout.fillHeight: true padding: 0 - background: Rectangle { - color: "#eaeaea" + background: Item { + anchors.fill: parent + Rectangle { + anchors.fill: parent + color: "#eaeaea" + } + + Text { + z: 10 + text: "Here? No, not here." + anchors.centerIn: parent + visible: listView.count === 0 + } } ListView {