This commit is contained in:
Sude 2015-08-18 02:47:45 +03:00
commit 535bbc52e3

View File

@ -423,6 +423,8 @@ int main(int argc, char *argv[])
int iLoginResult = 0;
if (config.bLoginAPI || config.bLoginHTTP || initResult == 1)
{
if (!config.bLoginAPI && !config.bLoginHTTP)
downloader.config.bLoginAPI = true;
iLoginResult = downloader.login();
if (iLoginResult == 0)
return 1;
@ -489,7 +491,8 @@ int main(int argc, char *argv[])
}
ofs.close();
Util::setFilePermissions(config.sConfigFilePath, boost::filesystem::owner_read | boost::filesystem::owner_write);
return 0;
if (config.bSaveConfig)
return 0;
}
else
{
@ -517,7 +520,7 @@ int main(int argc, char *argv[])
return 1;
}
}
else if (config.bShowWishlist)
if (config.bShowWishlist)
downloader.showWishlist();
else if (config.bUpdateCache)
downloader.updateCache();