From 837dc32606515ac905a2403394b06928455c5116 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 10 Jan 2014 12:11:43 +0300 Subject: If no mods present show message about it in mods settings tab. --- src/gui/widgets/tabs/setup_mods.cpp | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'src/gui') 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; -- cgit v1.2.3-70-g09d2