GUI fix: previous character was selected when saving new character

This commit is contained in:
Marc Zinnschlag 2013-12-03 15:19:13 +01:00
parent 34cdd2bb1f
commit 63721682f6

View file

@ -63,7 +63,7 @@ namespace MWGui
mCharacterSelection->addItem (title.str()); mCharacterSelection->addItem (title.str());
if (mCurrentCharacter == &*it || if (mCurrentCharacter == &*it ||
(!mCurrentCharacter && directory==Misc::StringUtils::lowerCase ( (!mCurrentCharacter && !mSaving && directory==Misc::StringUtils::lowerCase (
it->begin()->mPath.parent_path().filename().string()))) it->begin()->mPath.parent_path().filename().string())))
{ {
mCurrentCharacter = &*it; mCurrentCharacter = &*it;