1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-02-21 07:39:40 +00:00

Fix exception when shift+click on empty space in save dialog

This commit is contained in:
scrawl 2014-04-29 13:04:09 +02:00
parent 6a809064df
commit 5415ca6a63
2 changed files with 2 additions and 2 deletions

View file

@ -53,7 +53,7 @@ namespace MWGui
{ {
onSlotSelected(sender, pos); onSlotSelected(sender, pos);
if (MyGUI::InputManager::getInstance().isShiftPressed()) if (pos != MyGUI::ITEM_NONE && MyGUI::InputManager::getInstance().isShiftPressed())
{ {
ConfirmationDialog* dialog = MWBase::Environment::get().getWindowManager()->getConfirmationDialog(); ConfirmationDialog* dialog = MWBase::Environment::get().getWindowManager()->getConfirmationDialog();
dialog->open("#{sMessage3}"); dialog->open("#{sMessage3}");

View file

@ -475,7 +475,7 @@ namespace MWGui
text += std::string("#DDC79E") + faction->mName; text += std::string("#DDC79E") + faction->mName;
if (expelled.find(it->first) != expelled.end()) if (expelled.find(it->first) != expelled.end())
text += "\n#{sExpelled}"; text += "\n#BF9959#{sExpelled}";
else else
{ {
text += std::string("\n#BF9959") + faction->mRanks[it->second]; text += std::string("\n#BF9959") + faction->mRanks[it->second];