Commit 8048e6ed authored by Méven Car's avatar Méven Car Committed by Elvis Angelaccio
Browse files

InformationPanel ensure to have a showUrl when no items are selected

parent 7d6aaf4c
Pipeline #68455 passed with stage
in 4 minutes and 31 seconds
......@@ -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);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment