summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs/setup_mods.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-01-10 12:11:43 +0300
committerAndrei Karas <akaras@inbox.ru>2014-01-10 12:11:43 +0300
commit837dc32606515ac905a2403394b06928455c5116 (patch)
treec39f2b1505c6aa9f51b771078b409e324995db35 /src/gui/widgets/tabs/setup_mods.cpp
parent51fa913783cce22eacb439c8d671c7aaa1647898 (diff)
downloadmanaverse-837dc32606515ac905a2403394b06928455c5116.tar.gz
manaverse-837dc32606515ac905a2403394b06928455c5116.tar.bz2
manaverse-837dc32606515ac905a2403394b06928455c5116.tar.xz
manaverse-837dc32606515ac905a2403394b06928455c5116.zip
If no mods present show message about it in mods settings tab.
Diffstat (limited to 'src/gui/widgets/tabs/setup_mods.cpp')
-rw-r--r--src/gui/widgets/tabs/setup_mods.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/gui/widgets/tabs/setup_mods.cpp b/src/gui/widgets/tabs/setup_mods.cpp
index 646bfdb7e..f6b43183c 100644
--- a/src/gui/widgets/tabs/setup_mods.cpp
+++ b/src/gui/widgets/tabs/setup_mods.cpp
@@ -71,6 +71,13 @@ void Setup_Mods::loadMods()
splitToStringSet(modsList, modsString, '|');
const ModInfos &mods = ModDB::getAll();
+ if (mods.empty())
+ {
+ // TRANSLATORS: settings label
+ new SetupItemLabel(_("No mods present"), "", this, false);
+ return;
+ }
+
FOR_EACH (ModInfoCIterator, it, mods)
{
const ModInfo *const info = (*it).second;