]> git.sesse.net Git - kdenlive/commitdiff
Fix crash when editing properties of several missing clips
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 5 Feb 2012 13:18:12 +0000 (14:18 +0100)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Sun, 5 Feb 2012 13:18:12 +0000 (14:18 +0100)
src/projectlist.cpp

index bc84df9aee399e9fc6c0f318c58931c14faea966..fa7680a545a3296f5da7b3b2cd18ebd7d2ab92e3 100644 (file)
@@ -564,7 +564,10 @@ void ProjectList::editClipSelection(QList<QTreeWidgetItem *> list)
         p.next();
         kDebug() << "Result: " << p.key() << " = " << p.value();
     }*/
-    emit showClipProperties(clipList, commonproperties);
+    if (clipList.isEmpty()) {
+        emit displayMessage(i18n("No available clip selected"), -2);        
+    }
+    else emit showClipProperties(clipList, commonproperties);
 }
 
 void ProjectList::slotOpenClip()