┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/infosidebarpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/infosidebarpage.cpp')
-rw-r--r--src/infosidebarpage.cpp11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp
index fb422ec89..d1f88524d 100644
--- a/src/infosidebarpage.cpp
+++ b/src/infosidebarpage.cpp
@@ -117,13 +117,16 @@ void InfoSidebarPage::setSelection(const KFileItemList& selection)
m_timer->start(TimerDelay);
}
-void InfoSidebarPage::requestDelayedItemInfo(const KUrl& url)
+void InfoSidebarPage::requestDelayedItemInfo(const KFileItem& item)
{
cancelRequest();
- if (!url.isEmpty() && (selection().size() <= 1)) {
- m_urlCandidate = url;
- m_timer->start(TimerDelay);
+ if (!item.isNull() && (selection().size() <= 1)) {
+ const KUrl url = item.url();
+ if (!url.isEmpty()) {
+ m_urlCandidate = url;
+ m_timer->start(TimerDelay);
+ }
}
}