Commit 12781bc0 authored by Sven Langkamp's avatar Sven Langkamp

Fix crash when saving a flipbook after an item has been removed

takeItem didn't change the rowCount, using takeRow instead
parent bfd59527
......@@ -270,9 +270,11 @@ void FlipbookDockerDock::removeImage()
QStandardItem *item = m_flipbook->itemFromIndex(idx);
for (int i = 0; i < m_flipbook->rowCount(); ++i) {
if (m_flipbook->item(i) == item) {
delete m_flipbook->takeItem(i);
// workaround as takeItem(i) doesn't change the rowCount
delete m_flipbook->takeRow(i).first();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment