mirror of
https://github.com/davidgiven/fluxengine.git
synced 2025-10-31 11:17:01 -07:00
Fix format option clearing when changing formats; this caused the 'no
options' message to somehow not appear.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user