summaryrefslogtreecommitdiffstats
path: root/application
diff options
context:
space:
mode:
authorPetr Mrázek <peterix@gmail.com>2019-08-04 18:11:55 +0200
committerPetr Mrázek <peterix@gmail.com>2019-08-04 18:11:55 +0200
commitd31184f9a4d96644e8cef249045d511b1960096f (patch)
tree214976f5caec068020416abed7aad6cd6e4bfa98 /application
parentb75ba53d4b00124fd8e04b47b11fd2fc6bd9b730 (diff)
downloadMultiMC-d31184f9a4d96644e8cef249045d511b1960096f.tar
MultiMC-d31184f9a4d96644e8cef249045d511b1960096f.tar.gz
MultiMC-d31184f9a4d96644e8cef249045d511b1960096f.tar.lz
MultiMC-d31184f9a4d96644e8cef249045d511b1960096f.tar.xz
MultiMC-d31184f9a4d96644e8cef249045d511b1960096f.zip
GH-2738 check for being in the temp folder better
Diffstat (limited to 'application')
-rw-r--r--application/MainWindow.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/application/MainWindow.cpp b/application/MainWindow.cpp
index 00893b17..fb466939 100644
--- a/application/MainWindow.cpp
+++ b/application/MainWindow.cpp
@@ -1896,7 +1896,7 @@ void MainWindow::checkInstancePathForProblems()
warning.setDefaultButton(QMessageBox::Ok);
warning.exec();
}
- else if (pathfoldername.contains(QDir::tempPath()))
+ else if (pathfoldername.startsWith(QDir::tempPath()))
{
QMessageBox warning(this);
warning.setText(tr("Your instance folder is in a temporary folder: \'%1\'!").arg(QDir::tempPath()));