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
This commit is contained in:
Peter Penz 2007-09-13 12:18:30 +00:00
parent 177ddea853
commit 906b80ae0a

View file

@ -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);
}