summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/game.cpp2
-rw-r--r--src/gui/dialogsmanager.cpp20
2 files changed, 12 insertions, 10 deletions
diff --git a/src/game.cpp b/src/game.cpp
index 128497609..0bdea76d5 100644
--- a/src/game.cpp
+++ b/src/game.cpp
@@ -245,7 +245,7 @@ static void createGuiWindows()
const std::string lang = getLangShort();
if (lang.size() == 2)
{
- langChatTab = new LangTab(chatWindow, lang);
+ langChatTab = new LangTab(chatWindow, lang + " ");
langChatTab->setAllowHighlight(false);
}
}
diff --git a/src/gui/dialogsmanager.cpp b/src/gui/dialogsmanager.cpp
index cb3e065bd..1f5a95c1b 100644
--- a/src/gui/dialogsmanager.cpp
+++ b/src/gui/dialogsmanager.cpp
@@ -121,15 +121,17 @@ Window *DialogsManager::openErrorDialog(const std::string &header,
void DialogsManager::playerDeath()
{
- logger->log("DialogsManager::playerDeath");
- // TRANSLATORS: message header
- deathNotice = new OkDialog(_("Message"),
- DeadDB::getRandomString(),
- // TRANSLATORS: ok dialog button
- _("Revive"),
- DialogType::OK,
- false, true, nullptr, 260);
- deathNotice->addActionListener(&postDeathListener);
+ if (!deathNotice)
+ {
+ // TRANSLATORS: message header
+ deathNotice = new OkDialog(_("Message"),
+ DeadDB::getRandomString(),
+ // TRANSLATORS: ok dialog button
+ _("Revive"),
+ DialogType::OK,
+ false, true, nullptr, 260);
+ deathNotice->addActionListener(&postDeathListener);
+ }
}
void DialogsManager::attributeChanged(const int id,