mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-08-30 05:06:14 -05:00
Fix scroll position being lost when adding or removing macro segments
This commit is contained in:
@@ -213,10 +213,10 @@ void deleteLayoutItem(QLayoutItem *item)
|
||||
}
|
||||
}
|
||||
|
||||
void clearLayout(QLayout *layout)
|
||||
void clearLayout(QLayout *layout, int afterIdx)
|
||||
{
|
||||
QLayoutItem *item;
|
||||
while ((item = layout->takeAt(0))) {
|
||||
while (item = layout->takeAt(afterIdx)) {
|
||||
if (item->layout()) {
|
||||
clearLayout(item->layout());
|
||||
delete item->layout();
|
||||
|
||||
Reference in New Issue
Block a user