summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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;