diff options
| author | Peter Penz <[email protected]> | 2007-09-13 12:18:30 +0000 |
|---|---|---|
| committer | Peter Penz <[email protected]> | 2007-09-13 12:18:30 +0000 |
| commit | 906b80ae0a9a46ce8068889a31ba49348acf17b5 (patch) | |
| tree | 9b1aea1ecd626c382ff9c673f66f3a9a9f736e5a /src/infosidebarpage.cpp | |
| parent | 177ddea85335ceb33af8cf1df07ceb2c0e336c15 (diff) | |
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
Diffstat (limited to 'src/infosidebarpage.cpp')
| -rw-r--r-- | src/infosidebarpage.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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<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); } |
