fix(ManagedPackPage): clear combo boxes when adding new versions
Prevents versions to undergo mitosis. Signed-off-by: flow <flowlnlnln@gmail.com>
This commit is contained in:
parent
57b905be24
commit
74f7039abf
@ -193,6 +193,11 @@ void ModrinthManagedPackPage::parseManagedPack()
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We block signals here so that suggestVersion() doesn't get called, causing an assertion fail.
|
||||||
|
ui->versionsComboBox->blockSignals(true);
|
||||||
|
ui->versionsComboBox->clear();
|
||||||
|
ui->versionsComboBox->blockSignals(false);
|
||||||
|
|
||||||
for (auto version : m_pack.versions) {
|
for (auto version : m_pack.versions) {
|
||||||
QString name;
|
QString name;
|
||||||
|
|
||||||
@ -328,6 +333,11 @@ void FlameManagedPackPage::parseManagedPack() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// We block signals here so that suggestVersion() doesn't get called, causing an assertion fail.
|
||||||
|
ui->versionsComboBox->blockSignals(true);
|
||||||
|
ui->versionsComboBox->clear();
|
||||||
|
ui->versionsComboBox->blockSignals(false);
|
||||||
|
|
||||||
for (auto version : m_pack.versions) {
|
for (auto version : m_pack.versions) {
|
||||||
QString name;
|
QString name;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user