]> cloud.milkyroute.net Git - dolphin.git/commitdiff
update the URL candidate if only one file is selected, so that Nepomuk tags get updat...
authorPeter Penz <peter.penz19@gmail.com>
Thu, 13 Sep 2007 12:18:30 +0000 (12:18 +0000)
committerPeter Penz <peter.penz19@gmail.com>
Thu, 13 Sep 2007 12:18:30 +0000 (12:18 +0000)
svn path=/trunk/KDE/kdebase/apps/; revision=712054

src/infosidebarpage.cpp

index ae692fc42f0d2bab11d582d1e8453b76ed5b02a4..319582cb495e5d1773c715786388d72fa90c19c8 100644 (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);
 }