diff options
author | Morten Johan Sørvig <morten.sorvig@theqtcompany.com> | 2015-05-11 12:07:01 +0200 |
---|---|---|
committer | Morten Johan Sørvig <morten.sorvig@theqtcompany.com> | 2015-05-12 12:25:55 +0000 |
commit | 82caf4124365dd9f55f6877c2104d7934349dd48 (patch) | |
tree | 6b5439928d94f6d295936964eeb4579250f7c7ff /src/macdeployqt/macdeployqt/main.cpp | |
parent | 24b3a32197f20858cd564f3c37d9d12b757a5205 (diff) |
MacDeployQt: handle "./" in app bundle name
Use QDir::cleanPath() to normalize the app bundle
path.
Change-Id: I35053507dd11de986b9f43276e41d9fe3eff0fca
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Jake Petroules <jake.petroules@petroules.com>
Diffstat (limited to 'src/macdeployqt/macdeployqt/main.cpp')
-rw-r--r-- | src/macdeployqt/macdeployqt/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/macdeployqt/macdeployqt/main.cpp b/src/macdeployqt/macdeployqt/main.cpp index 713724279..3802a14ae 100644 --- a/src/macdeployqt/macdeployqt/main.cpp +++ b/src/macdeployqt/macdeployqt/main.cpp @@ -67,8 +67,7 @@ int main(int argc, char **argv) return 0; } - if (appBundlePath.endsWith("/")) - appBundlePath.chop(1); + appBundlePath = QDir::cleanPath(appBundlePath); if (QDir().exists(appBundlePath) == false) { qDebug() << "Error: Could not find app bundle" << appBundlePath; |