summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-04-23 20:25:10 +0300
committerAndrei Karas <akaras@inbox.ru>2014-04-23 21:11:10 +0300
commit52a8b304302afd9a98274518d75b971441d7dda9 (patch)
treea7d1638ad553c9b5a3de7d2b322515105cc3c52e /src
parent1c7d1e52decce816a0da17234386f77e7693f0b7 (diff)
downloadmv-52a8b304302afd9a98274518d75b971441d7dda9.tar.gz
mv-52a8b304302afd9a98274518d75b971441d7dda9.tar.bz2
mv-52a8b304302afd9a98274518d75b971441d7dda9.tar.xz
mv-52a8b304302afd9a98274518d75b971441d7dda9.zip
Dont check required field for enable/disable music files downloading.
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/updaterwindow.cpp18
1 files changed, 4 insertions, 14 deletions
diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp
index 824d8e0f6..75460cf78 100644
--- a/src/gui/windows/updaterwindow.cpp
+++ b/src/gui/windows/updaterwindow.cpp
@@ -840,21 +840,11 @@ void UpdaterWindow::logic()
if (mUpdateIndex < mUpdateFiles.size())
{
UpdateFile thisFile = mUpdateFiles[mUpdateIndex];
- if (!thisFile.required)
+ if (thisFile.type == "music"
+ && !config.getBoolValue("download-music"))
{
- // This statement checks to see if the file type
- // is music, and if download-music is true
- // If it fails, this statement returns true,
- // and results in not downloading the file
- // Else it will ignore the break,
- // and download the file.
-
- if (!(thisFile.type == "music"
- && config.getBoolValue("download-music")))
- {
- mUpdateIndex++;
- break;
- }
+ mUpdateIndex++;
+ break;
}
mCurrentFile = thisFile.name;
std::string checksum;