From 906b80ae0a9a46ce8068889a31ba49348acf17b5 Mon Sep 17 00:00:00 2001 From: Peter Penz Date: Thu, 13 Sep 2007 12:18:30 +0000 Subject: [PATCH] update the URL candidate if only one file is selected, so that Nepomuk tags get updated (thanks to Rajeev J Sebastian for the patch!) svn path=/trunk/KDE/kdebase/apps/; revision=712054 --- src/infosidebarpage.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/infosidebarpage.cpp b/src/infosidebarpage.cpp index ae692fc42f..319582cb49 100644 --- a/src/infosidebarpage.cpp +++ b/src/infosidebarpage.cpp @@ -121,6 +121,12 @@ void InfoSidebarPage::setUrl(const KUrl& url) void InfoSidebarPage::setSelection(const QList& selection) { SidebarPage::setSelection(selection); + if (selection.size() == 1) { + const KUrl url = selection.first().url(); + if (!url.isEmpty()) { + m_urlCandidate = url; + } + } m_timer->start(TimerDelay); }