From 1ac094321cf14b7993222830371d4c4bcac62dfa Mon Sep 17 00:00:00 2001 From: Yoann Lopes Date: Mon, 23 Sep 2013 20:14:14 +0200 Subject: [PATCH] Android: fixed arguments passed to the Qt application. Removed extra empty parameter. Change-Id: Iad5becf05801118d0f6d2ec2cc1ec255eaa9e872 Reviewed-by: Eskil Abrahamsen Blomfeldt --- src/android/jar/src/org/qtproject/qt5/android/QtNative.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/android/jar/src/org/qtproject/qt5/android/QtNative.java b/src/android/jar/src/org/qtproject/qt5/android/QtNative.java index 244654786d..f5bfe7e029 100644 --- a/src/android/jar/src/org/qtproject/qt5/android/QtNative.java +++ b/src/android/jar/src/org/qtproject/qt5/android/QtNative.java @@ -204,9 +204,9 @@ public class QtNative m_displayMetricsXDpi, m_displayMetricsYDpi, m_displayMetricsScaledDensity); - if (params.length() > 0) + if (params.length() > 0 && !params.startsWith("\t")) params = "\t" + params; - startQtApplication(f.getAbsolutePath() + "\t" + params, environment); + startQtApplication(f.getAbsolutePath() + params, environment); m_started = true; } return res;