mirror of
https://github.com/TES3MP/openmw-tes3mp.git
synced 2025-04-01 23:06:43 +00:00
fixed selecting current character based on value stored in settings
This commit is contained in:
parent
750133c0dd
commit
aebc2791a5
1 changed files with 3 additions and 0 deletions
|
@ -65,7 +65,10 @@ namespace MWGui
|
||||||
if (mCurrentCharacter == &*it ||
|
if (mCurrentCharacter == &*it ||
|
||||||
(!mCurrentCharacter && directory==Misc::StringUtils::lowerCase (
|
(!mCurrentCharacter && directory==Misc::StringUtils::lowerCase (
|
||||||
it->begin()->mPath.parent_path().filename().string())))
|
it->begin()->mPath.parent_path().filename().string())))
|
||||||
|
{
|
||||||
|
mCurrentCharacter = &*it;
|
||||||
mCharacterSelection->setIndexSelected(mCharacterSelection->getItemCount()-1);
|
mCharacterSelection->setIndexSelected(mCharacterSelection->getItemCount()-1);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue