mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-01-19 23:23:52 +00:00
correction from Scrawl.
Now correctly handles skills/attributes. Also, document what ContentSelectorView::ContentSelector::slotAddonTableItemActivated() is doing.
This commit is contained in:
parent
9f155df761
commit
27f91a8326
2 changed files with 2 additions and 1 deletions
|
@ -185,7 +185,7 @@ namespace MWMechanics
|
||||||
bool missing = true;
|
bool missing = true;
|
||||||
for (std::vector<ActiveEffect>::const_iterator iter(addTo.begin()); iter != addTo.end(); ++iter)
|
for (std::vector<ActiveEffect>::const_iterator iter(addTo.begin()); iter != addTo.end(); ++iter)
|
||||||
{
|
{
|
||||||
if (effect->mEffectId == iter->mEffectId)
|
if ((effect->mEffectId == iter->mEffectId) && (effect->mArg == iter->mArg))
|
||||||
{
|
{
|
||||||
missing = false;
|
missing = false;
|
||||||
break;
|
break;
|
||||||
|
|
|
@ -183,6 +183,7 @@ void ContentSelectorView::ContentSelector::setGameFileSelected(int index, bool s
|
||||||
|
|
||||||
void ContentSelectorView::ContentSelector::slotAddonTableItemActivated(const QModelIndex &index)
|
void ContentSelectorView::ContentSelector::slotAddonTableItemActivated(const QModelIndex &index)
|
||||||
{
|
{
|
||||||
|
// toggles check state when an AddOn file is double clicked or activated by keyboard
|
||||||
QModelIndex sourceIndex = mAddonProxyModel->mapToSource (index);
|
QModelIndex sourceIndex = mAddonProxyModel->mapToSource (index);
|
||||||
|
|
||||||
if (!mContentModel->isEnabled (sourceIndex))
|
if (!mContentModel->isEnabled (sourceIndex))
|
||||||
|
|
Loading…
Reference in a new issue