]> git.sesse.net Git - kdenlive/commitdiff
nepomuk: fix warning
authorEd Rogalsky <ed.rogalsky@googlemail.com>
Sat, 8 Mar 2014 20:17:10 +0000 (21:17 +0100)
committerEd Rogalsky <ed.rogalsky@googlemail.com>
Sat, 8 Mar 2014 20:17:10 +0000 (21:17 +0100)
src/projectlist.cpp

index a5a843b69697089c3e63a11f3815c7dad60df3ef..8cca3fa3b4ebc3b69a168a3f9d43ee478b9dc0f9 100644 (file)
@@ -970,12 +970,18 @@ void ProjectList::slotUpdateClipProperties(ProjectItem *clip, QMap <QString, QSt
         emit clipNameChanged(clip->clipId(), properties.value("name"));
     }
     if (properties.contains("description")) {
+#ifdef USE_NEPOMUK
         ClipType type = clip->clipType();
+#endif
         monitorItemEditing(false);
         clip->setText(1, properties.value("description"));
         monitorItemEditing(true);
+
 #ifdef USE_NEPOMUK
-        if (KdenliveSettings::activate_nepomuk() && (type == Audio || type == Video || type == AV || type == Image || type == Playlist)) {
+        bool hasType = (type == Audio || type == Video || type == AV ||
+                        type == Image || type == Playlist);
+
+        if (KdenliveSettings::activate_nepomuk() && hasType) {
             // Use Nepomuk system to store clip description
             Nepomuk::Resource f(clip->clipUrl().path());
             f.setDescription(properties.value("description"));