mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-06-30 08:33:32 +00:00
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:
parent
48b5affc5b
commit
7a35ae2cb6
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue