From 52a8b304302afd9a98274518d75b971441d7dda9 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 23 Apr 2014 20:25:10 +0300 Subject: Dont check required field for enable/disable music files downloading. --- src/gui/windows/updaterwindow.cpp | 18 ++++-------------- 1 file changed, 4 insertions(+), 14 deletions(-) (limited to 'src/gui') 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; -- cgit v1.2.3-60-g2f50