┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
path: root/src/infosidebarpage.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/infosidebarpage.cpp')
-rw-r--r--src/infosidebarpage.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp
index ae692fc42..319582cb4 100644
--- a/src/infosidebarpage.cpp
+++ b/src/infosidebarpage.cpp
@@ -121,6 +121,12 @@ void InfoSidebarPage::setUrl(const KUrl& url)
void InfoSidebarPage::setSelection(const QList<KFileItem>& selection)
{
SidebarPage::setSelection(selection);
+ if (selection.size() == 1) {
+ const KUrl url = selection.first().url();
+ if (!url.isEmpty()) {
+ m_urlCandidate = url;
+ }
+ }
m_timer->start(TimerDelay);
}