]> git.sesse.net Git - kdenlive/commitdiff
Clip deletion: add checkbox so that user don't have to confirm deletion for each...
authorJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 25 Oct 2010 17:53:07 +0000 (17:53 +0000)
committerJean-Baptiste Mardelle <jb@kdenlive.org>
Mon, 25 Oct 2010 17:53:07 +0000 (17:53 +0000)
http://kdenlive.org/mantis/view.php?id=1858

svn path=/trunk/kdenlive/; revision=5049

src/projectlist.cpp

index f61a4560d437ce374d8fb66d520ff0c07cb03a8f..f5efe1f4dd75c1615a4d28ea69ee50e37d93ff50 100644 (file)
@@ -741,7 +741,6 @@ void ProjectList::slotRemoveClip()
 
     QUndoCommand *delCommand = new QUndoCommand();
     delCommand->setText(i18n("Delete Clip Zone"));
-
     for (int i = 0; i < selected.count(); i++) {
         if (selected.at(i)->type() == PROJECTSUBCLIPTYPE) {
             // subitem
@@ -763,11 +762,13 @@ void ProjectList::slotRemoveClip()
         } else {
             ProjectItem *item = static_cast <ProjectItem *>(selected.at(i));
             ids << item->clipId();
-            if (item->numReferences() > 0 && KMessageBox::questionYesNo(kapp->activeWindow(), i18np("Delete clip <b>%2</b>?<br />This will also remove the clip in timeline", "Delete clip <b>%2</b>?<br />This will also remove its %1 clips in timeline", item->numReferences(), item->names().at(1)), i18n("Delete Clip")) != KMessageBox::Yes)
+            if (item->numReferences() > 0 && KMessageBox::questionYesNo(kapp->activeWindow(), i18np("Delete clip <b>%2</b>?<br />This will also remove the clip in timeline", "Delete clip <b>%2</b>?<br />This will also remove its %1 clips in timeline", item->numReferences(), item->names().at(1)), i18n("Delete Clip"), KStandardGuiItem::yes(), KStandardGuiItem::no(), "DeleteAll") == KMessageBox::No) {
+                KMessageBox::enableMessage("DeleteAll");
                 return;
+            }
         }
     }
-
+    KMessageBox::enableMessage("DeleteAll");
     if (delCommand->childCount() == 0)
         delete delCommand;
     else