mirror of
https://invent.kde.org/system/dolphin
synced 2024-09-19 16:31:21 +00:00
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:
parent
177ddea853
commit
906b80ae0a
|
@ -121,6 +121,12 @@ void InfoSidebarPage::setUrl(const KUrl& url)
|
||||||
void InfoSidebarPage::setSelection(const QList<KFileItem>& selection)
|
void InfoSidebarPage::setSelection(const QList<KFileItem>& selection)
|
||||||
{
|
{
|
||||||
SidebarPage::setSelection(selection);
|
SidebarPage::setSelection(selection);
|
||||||
|
if (selection.size() == 1) {
|
||||||
|
const KUrl url = selection.first().url();
|
||||||
|
if (!url.isEmpty()) {
|
||||||
|
m_urlCandidate = url;
|
||||||
|
}
|
||||||
|
}
|
||||||
m_timer->start(TimerDelay);
|
m_timer->start(TimerDelay);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue