mirror of
https://port.numenaute.org/aleajactaest/khanat-opennel-code.git
synced 2024-12-25 10:20:54 +00:00
Fixed: Use real data size when migrating
--HG-- branch : develop
This commit is contained in:
parent
1ebc739797
commit
89be376c1f
1 changed files with 2 additions and 3 deletions
|
@ -119,9 +119,8 @@ void CMigrateDialog::accept()
|
||||||
// check free disk space
|
// check free disk space
|
||||||
qint64 freeSpace = NLMISC::CSystemInfo::availableHDSpace(m_dstDirectory.toUtf8().constData());
|
qint64 freeSpace = NLMISC::CSystemInfo::availableHDSpace(m_dstDirectory.toUtf8().constData());
|
||||||
|
|
||||||
const CServer &server = CConfigFile::getInstance()->getServer();
|
// compare with exact size of current directory
|
||||||
|
if (freeSpace < getDirectorySize(m_currentDirectory, true))
|
||||||
if (freeSpace < server.dataUncompressedSize)
|
|
||||||
{
|
{
|
||||||
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."));
|
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;
|
return;
|
||||||
|
|
Loading…
Reference in a new issue