Fix format option clearing when changing formats; this caused the 'no

options' message to somehow not appear.
This commit is contained in:
David Given
2025-01-27 01:30:05 +01:00
parent 299c27aaa2
commit 518b9e1f88

View File

@@ -123,12 +123,8 @@ public:
const ConfigProto* config = formats.at(formatId.toStdString());
auto* layout = _mainWindow->formatOptionsContainerLayout;
for (int i = 0; i < layout->count(); i++)
{
QWidget* w = layout->itemAt(i)->widget();
if (w)
w->deleteLater();
}
while (auto item = layout->takeAt(0))
delete item->widget();
QSet<QString> settings =
app->value(QString(FORMAT_OPTIONS_PREFIX) + "/" + formatId)