mirror of
https://invent.kde.org/system/dolphin
synced 2024-11-05 18:47:12 +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
1 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue