summaryrefslogtreecommitdiffstats
path: root/src/widgets/kernel/qwidget_qpa.cpp
diff options
context:
space:
mode:
authorMorten Johan Sørvig <morten.sorvig@digia.com>2014-04-02 23:16:28 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-04-05 08:16:19 +0200
commit2884d7c9aafda5ad2d84f1c7a1b4ea2625182885 (patch)
tree753efb0a011c20d21235025b488765fe6134895c /src/widgets/kernel/qwidget_qpa.cpp
parent840a66501776b992623734ee37be0a46ecc42484 (diff)
OS X: Improve QLibraryInfo app bundle testing.
QLibraryInfo::location() paths are relative to "myapp.app/Contents/" when the application has a bundle and relative to the executable when not. However CFBundleGetMainBundle() can and will return a valid CFBundleRef even if the application is built as a standalone executable. Add a test that verifies that the path constructed with "/Contents" exists on disk. Fall back to the non-bundle code path if it doesn't. This bug was hit in cases where a qt.conf file was present side-by-side with the app binary, for example in qtbase/bin. Task-number: QTBUG-38039 Change-Id: Id993599208fe94fff283c725778f8ad47b610ba7 Reviewed-by: Eike Ziller <eike.ziller@digia.com> Reviewed-by: Gabriel de Dietrich <gabriel.dedietrich@digia.com> Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Diffstat (limited to 'src/widgets/kernel/qwidget_qpa.cpp')
0 files changed, 0 insertions, 0 deletions