From: Peter Penz Date: Thu, 13 Sep 2007 12:18:30 +0000 (+0000) Subject: update the URL candidate if only one file is selected, so that Nepomuk tags get updat... X-Git-Url: https://cloud.milkyroute.net/gitweb/dolphin.git/commitdiff_plain/906b80ae0a9a46ce8068889a31ba49348acf17b5 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 --- 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& selection) { SidebarPage::setSelection(selection); + if (selection.size() == 1) { + const KUrl url = selection.first().url(); + if (!url.isEmpty()) { + m_urlCandidate = url; + } + } m_timer->start(TimerDelay); }