Fixed remane and delete of selected skin

Signed-off-by: Trial97 <alexandru.tripon97@gmail.com>
This commit is contained in:
Trial97
2023-10-25 19:56:26 +03:00
parent a5938a7de9
commit 263dc5af67
2 changed files with 5 additions and 3 deletions

View File

@ -359,7 +359,7 @@ bool SkinList::setData(const QModelIndex& idx, const QVariant& value, int role)
int row = idx.row();
if (row < 0 || row >= m_skin_list.size())
return false;
auto skin = m_skin_list[row];
auto& skin = m_skin_list[row];
auto newName = value.toString();
if (skin.name() != newName) {
skin.rename(newName);