From fea68274b89a9bcde55eabbf6eb7bf2e8376d930 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Aur=C3=A9lien=20G=C3=A2teau?= Date: Thu, 11 Oct 2012 11:15:03 +0200 Subject: Allow qmljsdebugger argument and value to be separated by a space This change makes it possible to use the QML JS debugger with KDE applications. Change-Id: Id5838fa34dcb8b54127abc6da6fe7c2e9a5a1c2e Reviewed-by: David Faure (KDE) Reviewed-by: Kai Koehne Reviewed-by: Friedemann Kleint --- src/corelib/kernel/qcoreapplication.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/corelib/kernel/qcoreapplication.cpp') diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index 586698d2c0..8ede244145 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -167,6 +167,9 @@ void QCoreApplicationPrivate::processCommandLineArguments() QByteArray arg = argv[i]; if (arg.startsWith("-qmljsdebugger=")) { qmljs_debug_arguments = QString::fromLocal8Bit(arg.right(arg.length() - 15)); + } else if (arg == "-qmljsdebugger" && i < argc - 1) { + ++i; + qmljs_debug_arguments = QString::fromLocal8Bit(argv[i]); } else { argv[j++] = argv[i]; } -- cgit v1.2.3