Correctly restore the default TEMP folder, if custom TEMP folder doesn't exist anymore.

This commit is contained in:
LoRd_MuldeR 2015-05-04 22:45:06 +02:00
parent eced84de40
commit 9e51a486ec

View File

@ -1620,7 +1620,7 @@ void MainWindow::encodeButtonClicked(void)
{
if(QMessageBox::warning(this, tr("Not Found"), QString("%1<br><tt>%2</tt>").arg(NOBR(tr("Your currently selected TEMP folder does not exist anymore:")), NOBR(QDir::toNativeSeparators(tempFolder))), tr("Restore Default"), tr("Cancel")) == 0)
{
SET_CHECKBOX_STATE(ui->checkBoxUseSystemTempFolder, m_settings->customTempPathEnabledDefault());
SET_CHECKBOX_STATE(ui->checkBoxUseSystemTempFolder, (!m_settings->customTempPathEnabledDefault()));
}
return;
}