diff options
author | jkobus <jaroslaw.kobus@theqtcompany.com> | 2015-01-20 11:04:11 +0100 |
---|---|---|
committer | Jarek Kobus <jaroslaw.kobus@theqtcompany.com> | 2015-01-20 13:06:41 +0100 |
commit | 1b632baad6090403da17cdde411bf7fa511b1da2 (patch) | |
tree | 60b9eef5303291818a8f973870d190c1c2de0d9d /src/libs/installer/packagemanagergui.cpp | |
parent | 9547c3ff712665eeccfd54ce44376ec6401373e8 (diff) |
Include application size only in case of installer.
When createLocalRepository option was specified,
include the size of application only for the
very first installation (isInstaller()) and
omit it in other cases.
Change-Id: I3bb248cb1436c16e570140e8d70ebf5cba2c37e5
Reviewed-by: Christoph VogtlÃĪnder <c.vogtlaender@sigma-surface-science.com>
Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com>
Diffstat (limited to 'src/libs/installer/packagemanagergui.cpp')
-rw-r--r-- | src/libs/installer/packagemanagergui.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libs/installer/packagemanagergui.cpp b/src/libs/installer/packagemanagergui.cpp index eed7bd066..46ba310ba 100644 --- a/src/libs/installer/packagemanagergui.cpp +++ b/src/libs/installer/packagemanagergui.cpp @@ -2093,7 +2093,7 @@ void ReadyForInstallationPage::entering() quint64 repositorySize = 0; const bool createLocalRepository = packageManagerCore()->createLocalRepositoryFromBinary(); - if (createLocalRepository) { + if (createLocalRepository && packageManagerCore()->isInstaller()) { repositorySize = QFile(QCoreApplication::applicationFilePath()).size(); // if we create a local repository, take that space into account as well required += repositorySize; |