From: Méven Car Date: Fri, 12 Mar 2021 06:18:52 +0000 (+0100) Subject: InformationPanel ensure to have a showUrl when no items are selected X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/8048e6ed1bee096fb82fa2335d533779c89c809a?ds=sidebyside InformationPanel ensure to have a showUrl when no items are selected --- 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);