summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEd Rogalsky <ed.rogalsky@googlemail.com>2014-03-08 20:17:10 (GMT)
committerEd Rogalsky <ed.rogalsky@googlemail.com>2014-03-08 20:17:10 (GMT)
commit12444d4f7225efd002aea05a68cab73380760480 (patch)
tree4c173fd4004f4d68ed45a115cc2f3d4b5265576d
parentae3490fb4ebb0b45147874eb0b7ff54e36e65747 (diff)
nepomuk: fix warning
-rw-r--r--src/projectlist.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/projectlist.cpp b/src/projectlist.cpp
index a5a843b..8cca3fa 100644
--- a/src/projectlist.cpp
+++ b/src/projectlist.cpp
@@ -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"));