]> cloud.milkyroute.net Git - dolphin.git/commitdiff
InformationPanel ensure to have a showUrl when no items are selected
authorMéven Car <meven29@gmail.com>
Fri, 12 Mar 2021 06:18:52 +0000 (07:18 +0100)
committerElvis Angelaccio <elvis.angelaccio@kde.org>
Sun, 4 Jul 2021 10:04:00 +0000 (10:04 +0000)
src/panels/information/informationpanel.cpp

index 9a6fc370884333e89a48c57746da39e62b03c007..12feb8608aff17eeb32700b1382e59a9f8d7838d 100644 (file)
@@ -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);