From 8048e6ed1bee096fb82fa2335d533779c89c809a Mon Sep 17 00:00:00 2001 From: =?utf8?q?M=C3=A9ven=20Car?= Date: Fri, 12 Mar 2021 07:18:52 +0100 Subject: [PATCH] InformationPanel ensure to have a showUrl when no items are selected --- src/panels/information/informationpanel.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/panels/information/informationpanel.cpp b/src/panels/information/informationpanel.cpp index 9a6fc3708..12feb8608 100644 --- a/src/panels/information/informationpanel.cpp +++ b/src/panels/information/informationpanel.cpp @@ -59,6 +59,7 @@ void InformationPanel::setSelection(const KFileItemList& selection) m_shownUrl = url(); showItemInfo(); } + m_infoTimer->stop(); } else { if ((count == 1) && !selection.first().url().isEmpty()) { m_urlCandidate = selection.first().url(); @@ -235,6 +236,7 @@ void InformationPanel::showItemInfo() if (item.isNull()) { // No item is hovered and no selection has been done: provide // an item for the currently shown directory. + m_shownUrl = url(); m_folderStatJob = KIO::statDetails(url(), KIO::StatJob::SourceSide, KIO::StatDefaultDetails | KIO::StatRecursiveSize, KIO::HideProgressInfo); if (m_folderStatJob->uiDelegate()) { KJobWidgets::setWindow(m_folderStatJob, this); -- 2.47.3