diff options
author | Thomas McGuire <thomas.mcguire.qnx@kdab.com> | 2012-10-17 10:45:43 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2012-10-23 11:31:17 +0200 |
commit | 2e2133247677fbdf81741badf523a00612826a37 (patch) | |
tree | 4b04d8fb8a639fe5797f55f3d165218d0230ae42 /src | |
parent | bbda968a0a3230b1ddb55b27e4dcc627fc087bbd (diff) |
Blackberry: Fix applicationFilePath() for unpackaged executables
Not all executables originate from a BAR package, for example unit
tests.
Make those use the fallback code for finding the application file path.
Change-Id: I5603f329bbe74e37d319ddd190f72bc6f64e1a5c
Reviewed-by: Fabian Bumberger <fbumberger@rim.com>
Reviewed-by: Kevin Krammer <kevin.krammer@kdab.com>
Reviewed-by: Sean Harmer <sean.harmer@kdab.com>
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/kernel/qcoreapplication.cpp | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index df0ffce12d..55112af7ec 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -1796,8 +1796,6 @@ QString QCoreApplication::applicationFilePath() if (!executables.empty()) { //We assume that there is only one executable in the folder return dir.absoluteFilePath(executables.first()); - } else { - return QString(); } #elif defined(Q_OS_MAC) QString qAppFileName_str = qAppFileName(); |