From 12e7e48fbed86c7047d5861aa084ca38617141fd Mon Sep 17 00:00:00 2001 From: Markus Mohrhard Date: Mon, 24 Apr 2017 19:51:40 +0200 Subject: if the update_dir does not exist continue with the update check --- desktop/source/app/app.cxx | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'desktop') diff --git a/desktop/source/app/app.cxx b/desktop/source/app/app.cxx index 09457b88b3c9..627cf6a2db92 100644 --- a/desktop/source/app/app.cxx +++ b/desktop/source/app/app.cxx @@ -1473,16 +1473,12 @@ int Desktop::Main() { osl::DirectoryItem aPatchInfo; osl::DirectoryItem::get(Updater::getUpdateInfoURL(), aPatchInfo); + osl::DirectoryItem aDirectoryItem; + osl::DirectoryItem::get(Updater::getUpdateDirURL(), aDirectoryItem); - if (aPatchInfo.is()) + if (aPatchInfo.is() && aDirectoryItem.is()) { - osl::DirectoryItem aDirectoryItem; - osl::DirectoryItem::get(Updater::getUpdateDirURL(), aDirectoryItem); - bool bValidUpdateDirExists = aDirectoryItem.is(); - if (bValidUpdateDirExists) - { - update(); - } + update(); } else if (isTimeForUpdateCheck()) { -- cgit