mirror of
https://github.com/PancakeTAS/lsfg-vk.git
synced 2026-04-05 01:58:06 +00:00
refactor(cleanup): fix active_in model
This commit is contained in:
parent
ff97eca240
commit
1cba898ade
1 changed files with 3 additions and 0 deletions
|
|
@ -197,6 +197,7 @@ namespace lsfgvk::ui {
|
|||
ls::GameConf conf;
|
||||
conf.name = name.toStdString();
|
||||
this->m_profiles.push_back(std::move(conf));
|
||||
this->m_active_in_list_models.push_back(new QStringListModel({}, this));
|
||||
|
||||
auto& model = this->m_profile_list_model;
|
||||
model->insertRow(model->rowCount());
|
||||
|
|
@ -220,6 +221,8 @@ namespace lsfgvk::ui {
|
|||
|
||||
auto& profiles = this->m_profiles;
|
||||
profiles.erase(profiles.begin() + this->m_profile_index);
|
||||
auto& active_in_models = this->m_active_in_list_models;
|
||||
active_in_models.erase(active_in_models.begin() + this->m_profile_index);
|
||||
auto& model = this->m_profile_list_model;
|
||||
model->removeRow(this->m_profile_index);
|
||||
if (!this->m_profiles.empty())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue