aboutsummaryrefslogtreecommitdiff
path: root/depends/util/src
diff options
context:
space:
mode:
authorJan Dalheimer <jan@dalheimer.de>2014-07-30 21:45:12 +0200
committerJan Dalheimer <jan@dalheimer.de>2014-07-30 21:45:12 +0200
commit21597da33d610f5c322c4fcd5317426f7dcf8c28 (patch)
tree9a4a27dfeea890b49e7e17866228dd46b00f7174 /depends/util/src
parent151fbde8d09747001b8d212bee4a1c1154e157a7 (diff)
parentc0254d9a75a1f0f784a3e9b6874475b2c2a3ab8f (diff)
downloadPrismLauncher-21597da33d610f5c322c4fcd5317426f7dcf8c28.tar.gz
PrismLauncher-21597da33d610f5c322c4fcd5317426f7dcf8c28.tar.bz2
PrismLauncher-21597da33d610f5c322c4fcd5317426f7dcf8c28.zip
Merge branch 'Loetkolben-pr_feature_warnProblematicInstPath' into develop
Closes #400
Diffstat (limited to 'depends/util/src')
-rw-r--r--depends/util/src/pathutils.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/depends/util/src/pathutils.cpp b/depends/util/src/pathutils.cpp
index 1d09fe45..ba66898e 100644
--- a/depends/util/src/pathutils.cpp
+++ b/depends/util/src/pathutils.cpp
@@ -144,3 +144,11 @@ void openFileInDefaultProgram(QString filename)
{
QDesktopServices::openUrl(QUrl::fromLocalFile(filename));
}
+
+// Does the directory path contain any '!'? If yes, return true, otherwise false.
+// (This is a problem for Java)
+bool checkProblemticPathJava(QDir folder)
+{
+ QString pathfoldername = folder.absolutePath();
+ return pathfoldername.contains("!", Qt::CaseInsensitive);
+}