diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-01-10 12:11:43 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-01-10 12:11:43 +0300 |
commit | 837dc32606515ac905a2403394b06928455c5116 (patch) | |
tree | c39f2b1505c6aa9f51b771078b409e324995db35 /src/gui/widgets | |
parent | 51fa913783cce22eacb439c8d671c7aaa1647898 (diff) | |
download | plus-837dc32606515ac905a2403394b06928455c5116.tar.gz plus-837dc32606515ac905a2403394b06928455c5116.tar.bz2 plus-837dc32606515ac905a2403394b06928455c5116.tar.xz plus-837dc32606515ac905a2403394b06928455c5116.zip |
If no mods present show message about it in mods settings tab.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r-- | src/gui/widgets/tabs/setup_mods.cpp | 7 |
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; |