diff --git a/crates/qbz-qt/qml/shell/LogViewerModal.qml b/crates/qbz-qt/qml/shell/LogViewerModal.qml index 28a13924a..d3bdc8f61 100644 --- a/crates/qbz-qt/qml/shell/LogViewerModal.qml +++ b/crates/qbz-qt/qml/shell/LogViewerModal.qml @@ -66,6 +66,12 @@ Item { onVisibleChanged: { if (visible) { root.advancedOpen = false + // A modal's fields open clean (2026-09-14): the search box and the + // filter it drives both outlived the close. + if (searchInput.text !== "") { + searchInput.text = "" + QbzShell.logSetSearch("") + } keyScope.forceActiveFocus() } } diff --git a/crates/qbz-qt/qml/views/playlistmanager/PmFolderMenu.qml b/crates/qbz-qt/qml/views/playlistmanager/PmFolderMenu.qml index 2f982d745..788c0fab1 100644 --- a/crates/qbz-qt/qml/views/playlistmanager/PmFolderMenu.qml +++ b/crates/qbz-qt/qml/views/playlistmanager/PmFolderMenu.qml @@ -83,6 +83,8 @@ QbzContextMenu { menuRoot.playlistId = String(pid || "") menuRoot.currentFolderId = String(fid || "") menuRoot.folderQuery = "" + // The box too: QbzLineEdit re-seeds only while unfocused. + folderSearchField.reset("") menuRoot.openBelowRight(anchorItem) } @@ -103,6 +105,7 @@ QbzContextMenu { height: visible ? (menuRoot.kioskHost ? 44 : 32) : 0 QbzLineEdit { + id: folderSearchField kioskHost: menuRoot.kioskHost anchors.verticalCenter: parent.verticalCenter // The plain arm is a FIXED width: 240 — a modal/menu must set it.