Merge with develop

This commit is contained in:
kervala 2016-10-04 12:04:23 +02:00
parent 98066af393
commit 643c0fabf2
2 changed files with 17 additions and 9 deletions

View file

@ -186,11 +186,15 @@ void CInstallDialog::accept()
return;
}
// if reinstalling in same directory, don't check if directory is empty
if (m_dstDirectory != CConfigFile::getInstance()->getNewInstallationDirectory())
{
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."));
return;
}
}
if (oldDirectoryRadioButton->isChecked())
{

View file

@ -154,11 +154,15 @@ void CMigrateDialog::accept()
return;
}
// if reinstalling in same directory, don't check if directory is empty
if (m_dstDirectory != CConfigFile::getInstance()->getNewInstallationDirectory())
{
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."));
return;
}
}
CConfigFile::getInstance()->setSrcServerDirectory(m_currentDirectory);
CConfigFile::getInstance()->setInstallationDirectory(m_dstDirectory);