GH-2738 check for being in the temp folder better

This commit is contained in:
Petr Mrázek 2019-08-04 18:11:55 +02:00
parent b75ba53d4b
commit d31184f9a4

View File

@ -1896,7 +1896,7 @@ void MainWindow::checkInstancePathForProblems()
warning.setDefaultButton(QMessageBox::Ok); warning.setDefaultButton(QMessageBox::Ok);
warning.exec(); warning.exec();
} }
else if (pathfoldername.contains(QDir::tempPath())) else if (pathfoldername.startsWith(QDir::tempPath()))
{ {
QMessageBox warning(this); QMessageBox warning(this);
warning.setText(tr("Your instance folder is in a temporary folder: \'%1\'!").arg(QDir::tempPath())); warning.setText(tr("Your instance folder is in a temporary folder: \'%1\'!").arg(QDir::tempPath()));