UI: Fix Remux window only being usable once

The beginInsertRows/endInsertRows calls seem to signal that the rowCount
has changed, and that views should adjust accordingly. The isProcessing
boolean changes the returned value of RemuxQueueModel::rowCount, which
seems to cause the empty row in the table model to disappear
permanently. I still don't know why it used to work this way and no
longer does.
This commit is contained in:
Ryan Foster 2024-02-13 15:48:17 -05:00 committed by Lain
parent 48b5affc5b
commit 7a35ae2cb6

View file

@ -585,14 +585,12 @@ void RemuxQueueModel::endProcessing()
}
// Signal that the insertion point exists again.
isProcessing = false;
if (!autoRemux) {
beginInsertRows(QModelIndex(), queue.length(), queue.length());
endInsertRows();
}
isProcessing = false;
emit dataChanged(index(0, RemuxEntryColumn::State),
index(queue.length(), RemuxEntryColumn::State));
}