Commit 19073c3f authored by Jean-Baptiste Mardelle's avatar Jean-Baptiste Mardelle
Browse files

Fix ambiguous widget name

parent 9018c1f8
Pipeline #212977 canceled with stage
in 2 minutes and 43 seconds
......@@ -199,7 +199,7 @@ RenderPresetDialog::RenderPresetDialog(QWidget *parent, RenderPresetModel *prese
}
preset_name->setFocus();
formatCombo->setCurrentText(preset->getParam(QStringLiteral("f")));
extension->setText(preset->extension());
preset_extension->setText(preset->extension());
QString width = preset->getParam(QStringLiteral("width"));
QString height = preset->getParam(QStringLiteral("height"));
QString size = preset->getParam(QStringLiteral("s"));
......@@ -419,7 +419,7 @@ RenderPresetDialog::RenderPresetDialog(QWidget *parent, RenderPresetModel *prese
QString speeds_list_str = speeds_list->toPlainText().replace('\n', ';').simplified();
std::unique_ptr<RenderPresetModel> newPreset(new RenderPresetModel(
newPresetName, newGroupName, parameters->toPlainText().simplified(), extension->text().simplified(), QString::number(default_vbitrate->value()),
newPresetName, newGroupName, parameters->toPlainText().simplified(), preset_extension->text().simplified(), QString::number(default_vbitrate->value()),
QString::number(default_vquality->value()), QString::number(aBitrate->value()), QString::number(aQuality->value()), speeds_list_str));
m_saveName = RenderPresetRepository::get()->savePreset(newPreset.get(), mode == Mode::Edit);
......@@ -431,9 +431,9 @@ RenderPresetDialog::RenderPresetDialog(QWidget *parent, RenderPresetModel *prese
connect(formatCombo, &QComboBox::currentTextChanged, [this](const QString &format) {
if (format == QLatin1String("matroska")) {
extension->setText(QStringLiteral("mkv"));
preset_extension->setText(QStringLiteral("mkv"));
} else {
extension->setText(format);
preset_extension->setText(format);
}
slotUpdateParams();
});
......
......@@ -7,7 +7,7 @@
<x>0</x>
<y>0</y>
<width>542</width>
<height>622</height>
<height>635</height>
</rect>
</property>
<property name="windowTitle">
......@@ -77,7 +77,7 @@
</widget>
</item>
<item row="4" column="3" colspan="2">
<widget class="QLineEdit" name="extension">
<widget class="QLineEdit" name="preset_extension">
<property name="sizePolicy">
<sizepolicy hsizetype="Maximum" vsizetype="Fixed">
<horstretch>0</horstretch>
......@@ -156,7 +156,7 @@
<x>0</x>
<y>0</y>
<width>522</width>
<height>322</height>
<height>319</height>
</rect>
</property>
<layout class="QHBoxLayout" name="horizontalLayout">
......@@ -174,7 +174,7 @@
<x>0</x>
<y>0</y>
<width>489</width>
<height>580</height>
<height>640</height>
</rect>
</property>
<layout class="QGridLayout" name="gridLayout">
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment