diff options
Diffstat (limited to 'pokemodr/StoreUI.cpp')
-rw-r--r-- | pokemodr/StoreUI.cpp | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/pokemodr/StoreUI.cpp b/pokemodr/StoreUI.cpp index fe9afaed..8c7e4a25 100644 --- a/pokemodr/StoreUI.cpp +++ b/pokemodr/StoreUI.cpp @@ -75,11 +75,7 @@ void StoreUI::on_varName_textChanged(const QString& name) varName->setCursorPosition(cursor); } -void StoreUI::on_varItems_itemSelectionChanged() +void StoreUI::on_varItems_itemClicked(QListWidgetItem* item) { - for (int i = 0; i < varItems->count(); ++i) - { - const QListWidgetItem* widgetItem = varItems->item(i); - static_cast<Store*>(modified())->setItem(widgetItem->data(Qt::UserRole).toInt(), widgetItem->isSelected()); - } + static_cast<Store*>(modified())->setItem(item->data(Qt::UserRole).toInt(), item->isSelected()); } |