From 562dd7f3f4d31ebbd02e6271ddb37e29778a1159 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 1 Oct 2016 13:07:18 +0200 Subject: [PATCH] Fixed: Use real data size when migrating --- .../ryzom/tools/client/ryzom_installer/src/migratedialog.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/code/ryzom/tools/client/ryzom_installer/src/migratedialog.cpp b/code/ryzom/tools/client/ryzom_installer/src/migratedialog.cpp index b930d39cc..0395a90dd 100644 --- a/code/ryzom/tools/client/ryzom_installer/src/migratedialog.cpp +++ b/code/ryzom/tools/client/ryzom_installer/src/migratedialog.cpp @@ -119,9 +119,8 @@ void CMigrateDialog::accept() // check free disk space qint64 freeSpace = NLMISC::CSystemInfo::availableHDSpace(m_dstDirectory.toUtf8().constData()); - const CServer &server = CConfigFile::getInstance()->getServer(); - - if (freeSpace < server.dataUncompressedSize) + // compare with exact size of current directory + if (freeSpace < getDirectorySize(m_currentDirectory, true)) { QMessageBox::StandardButton res = QMessageBox::warning(this, tr("Not enough free disk space"), tr("You don't have enough free space on this disk, please make more space or choose a directory on another disk.")); return;