From 315f663861283e7ee40161cdf97d6dae87c1c9ce Mon Sep 17 00:00:00 2001 From: kervala Date: Mon, 3 Oct 2016 17:19:41 +0200 Subject: [PATCH] Fixed: EstimatedSize is in KiB --- .../tools/client/ryzom_installer/src/operationdialog.cpp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp index ccb560ca2..7d6e872ce 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/operationdialog.cpp @@ -991,10 +991,13 @@ bool COperationDialog::updateAddRemoveEntry() { #ifdef Q_OS_WIN QSettings settings("HKEY_CURRENT_USER\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall\\Ryzom", QSettings::NativeFormat); - QStringList versionTokens = QApplication::applicationVersion().split('.'); - settings.setValue("DisplayVersion", QApplication::applicationVersion()); - settings.setValue("EstimatedSize", getDirectorySize(config->getInstallationDirectory(), true)); + QString version = QApplication::applicationVersion(); + + settings.setValue("DisplayVersion", version); + settings.setValue("EstimatedSize", (quint32)(getDirectorySize(config->getInstallationDirectory(), true) / 1024)); // size if in KiB + + QStringList versionTokens = version.split('.'); settings.setValue("MajorVersion", versionTokens[0].toInt()); settings.setValue("MinorVersion", versionTokens[1].toInt()); #endif