]> git.sesse.net Git - kdenlive/commitdiff
Fix crash if track number is added to the list of tracks, which should be deleted...
authorTill Theato <root@ttill.de>
Thu, 3 Jun 2010 23:30:22 +0000 (23:30 +0000)
committerTill Theato <root@ttill.de>
Thu, 3 Jun 2010 23:30:22 +0000 (23:30 +0000)
svn path=/trunk/kdenlive/; revision=4503

src/tracksconfigdialog.cpp

index 2cc82babd712b340e6762c4395f8cdd53a1920af..939859903d17bd2d5b5255fc38002e32d8c8c417 100644 (file)
@@ -190,7 +190,10 @@ void TracksConfigDialog::slotDelete()
     int row = table->currentRow();
     int i = 0;
     while (i < m_deletedRows.count()) {
-        if (m_deletedRows.at(i) > row) break;
+        if (m_deletedRows.at(i) == row)
+            return;
+        if (m_deletedRows.at(i) > row)
+            break;
         i++;
     }
     m_deletedRows.insert(i, row);