From 12444d4f7225efd002aea05a68cab73380760480 Mon Sep 17 00:00:00 2001 From: Ed Rogalsky Date: Sat, 8 Mar 2014 21:17:10 +0100 Subject: [PATCH] nepomuk: fix warning --- src/projectlist.cpp | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/projectlist.cpp b/src/projectlist.cpp index a5a843b6..8cca3fa3 100644 --- a/src/projectlist.cpp +++ b/src/projectlist.cpp @@ -970,12 +970,18 @@ void ProjectList::slotUpdateClipProperties(ProjectItem *clip, QMap 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")); -- 2.39.2