summaryrefslogtreecommitdiff
path: root/onlineupdate
diff options
context:
space:
mode:
authorMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-21 08:46:44 +0200
committerMarkus Mohrhard <markus.mohrhard@googlemail.com>2017-08-21 08:48:21 +0200
commit9e159f8b868a95ffe0998fdc8dffbbc171f6037b (patch)
tree4097707a804180b5943f21742c63b8a28aa3ccf8 /onlineupdate
parent35974dfc730079fd8d13e62f6b8a4048962f923f (diff)
updater: always show the updater UI
Change-Id: I0e1dc86673779966ff247b81852fb2f29655d2b9
Diffstat (limited to 'onlineupdate')
-rw-r--r--onlineupdate/source/update/updater/progressui_win.cxx11
1 files changed, 8 insertions, 3 deletions
diff --git a/onlineupdate/source/update/updater/progressui_win.cxx b/onlineupdate/source/update/updater/progressui_win.cxx
index b7ff90acbbbf..24aed2c94247 100644
--- a/onlineupdate/source/update/updater/progressui_win.cxx
+++ b/onlineupdate/source/update/updater/progressui_win.cxx
@@ -228,19 +228,24 @@ InitProgressUIStrings()
WCHAR filename[MAX_PATH];
if (!GetStringsFile(filename))
{
- return -1;
+ strcpy(sUIStrings.title, "LibreOffice Updater");
+ strcpy(sUIStrings.info, "This program is updating your LibreOffice installation.");
+ return 0;
}
if (_waccess(filename, 04))
{
- return -1;
+ strcpy(sUIStrings.title, "LibreOffice Updater");
+ strcpy(sUIStrings.info, "This program is updating your LibreOffice installation.");
+ return 0;
}
// If the updater.ini doesn't have the required strings, then we should not
// bother showing UI.
if (ReadStrings(filename, &sUIStrings) != OK)
{
- return -1;
+ strcpy(sUIStrings.title, "LibreOffice Updater");
+ strcpy(sUIStrings.info, "This program is updating your LibreOffice installation.");
}
return 0;