Merge with develop

--HG--
branch : compatibility-develop
hg/compatibility-develop
kervala 8 years ago
commit e4d156be08

@ -186,11 +186,15 @@ void CInstallDialog::accept()
return; return;
} }
// if reinstalling in same directory, don't check if directory is empty
if (m_dstDirectory != CConfigFile::getInstance()->getNewInstallationDirectory())
{
if (!isDirectoryEmpty(m_dstDirectory, true)) if (!isDirectoryEmpty(m_dstDirectory, true))
{ {
QMessageBox::StandardButton res = QMessageBox::warning(this, tr("Directory not empty"), tr("This directory is not empty, please choose another one.")); QMessageBox::StandardButton res = QMessageBox::warning(this, tr("Directory not empty"), tr("This directory is not empty, please choose another one."));
return; return;
} }
}
if (oldDirectoryRadioButton->isChecked()) if (oldDirectoryRadioButton->isChecked())
{ {

@ -154,11 +154,15 @@ void CMigrateDialog::accept()
return; return;
} }
// if reinstalling in same directory, don't check if directory is empty
if (m_dstDirectory != CConfigFile::getInstance()->getNewInstallationDirectory())
{
if (!isDirectoryEmpty(m_dstDirectory, true)) if (!isDirectoryEmpty(m_dstDirectory, true))
{ {
QMessageBox::StandardButton res = QMessageBox::warning(this, tr("Directory not empty"), tr("This directory is not empty, please choose another one.")); QMessageBox::StandardButton res = QMessageBox::warning(this, tr("Directory not empty"), tr("This directory is not empty, please choose another one."));
return; return;
} }
}
CConfigFile::getInstance()->setSrcServerDirectory(m_currentDirectory); CConfigFile::getInstance()->setSrcServerDirectory(m_currentDirectory);
CConfigFile::getInstance()->setInstallationDirectory(m_dstDirectory); CConfigFile::getInstance()->setInstallationDirectory(m_dstDirectory);

Loading…
Cancel
Save