summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-03 21:41:01 +0300
committerThorbjørn Lindeijer <thorbjorn@lindeijer.nl>2012-01-17 23:22:57 +0100
commitd706e45af52a25a2a0032d1161a3c4423a63eae2 (patch)
tree111f0187d82536143703526200cfc32cdb7eaa04 /src
parent79d6471f3950bf9ae062870f4fdcc292073d4b8d (diff)
downloadmana-d706e45af52a25a2a0032d1161a3c4423a63eae2.tar.gz
mana-d706e45af52a25a2a0032d1161a3c4423a63eae2.tar.bz2
mana-d706e45af52a25a2a0032d1161a3c4423a63eae2.tar.xz
mana-d706e45af52a25a2a0032d1161a3c4423a63eae2.zip
Fix update error if file line is empty, like in aethyra updates
Reviewed-by: Thorbjørn Lindeijer Reviewed-by: Yohann Ferreira
Diffstat (limited to 'src')
-rw-r--r--src/gui/updaterwindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/updaterwindow.cpp b/src/gui/updaterwindow.cpp
index 54373f05..c4684869 100644
--- a/src/gui/updaterwindow.cpp
+++ b/src/gui/updaterwindow.cpp
@@ -106,7 +106,8 @@ std::vector<updateFile> loadTxtFile(const std::string &fileName)
thisFile.required = true;
thisFile.desc = "";
- files.push_back(thisFile);
+ if (!thisFile.name.empty())
+ files.push_back(thisFile);
}
}
else