summaryrefslogtreecommitdiff
path: root/src/gui/updatewindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2011-04-03 21:41:01 +0300
committerAndrei Karas <akaras@inbox.ru>2011-04-03 21:41:01 +0300
commite998c784e0a3943a6a85be4f82c5a1b8f027b838 (patch)
treecec1598635df9b6fe050372c67b7bfb0b3a3343b /src/gui/updatewindow.cpp
parent4cc1a068ca16c3aa272e0db267826cd414fbcd0d (diff)
downloadmv-e998c784e0a3943a6a85be4f82c5a1b8f027b838.tar.gz
mv-e998c784e0a3943a6a85be4f82c5a1b8f027b838.tar.bz2
mv-e998c784e0a3943a6a85be4f82c5a1b8f027b838.tar.xz
mv-e998c784e0a3943a6a85be4f82c5a1b8f027b838.zip
Fix update error if file line is empty, like in aethyra updates.
Diffstat (limited to 'src/gui/updatewindow.cpp')
-rw-r--r--src/gui/updatewindow.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gui/updatewindow.cpp b/src/gui/updatewindow.cpp
index 9a2b4d75a..ea8d27013 100644
--- a/src/gui/updatewindow.cpp
+++ b/src/gui/updatewindow.cpp
@@ -114,7 +114,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