diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2009-09-21 14:03:39 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2009-09-21 14:37:56 (GMT) |
commit | c8816c6da9d265e5ccbf0385280556f9b4c521f6 (patch) | |
tree | e315959209a443b59ab65a7992915628839dac0c /src | |
parent | 0d3738134f1797a18475fa043751c168eabb48e8 (diff) | |
download | Qt-c8816c6da9d265e5ccbf0385280556f9b4c521f6.zip Qt-c8816c6da9d265e5ccbf0385280556f9b4c521f6.tar.gz Qt-c8816c6da9d265e5ccbf0385280556f9b4c521f6.tar.bz2 |
QCoreApplicationPrivate::appendApplicationPathToLibraryPaths WinCE fix
On Windows CE the plugin path is likely to be the same as the
application directory. That's why we must not compare app_location
with the plugins path.
The check app_libpaths->contains(app_location) should be enough.
Autotest: tst_QApplication::libraryPaths
Reviewed-by: thartman
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/kernel/qcoreapplication.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/corelib/kernel/qcoreapplication.cpp b/src/corelib/kernel/qcoreapplication.cpp index c0c55bb..fabbc69 100644 --- a/src/corelib/kernel/qcoreapplication.cpp +++ b/src/corelib/kernel/qcoreapplication.cpp @@ -316,7 +316,7 @@ void QCoreApplicationPrivate::appendApplicationPathToLibraryPaths() QString app_location( QCoreApplication::applicationFilePath() ); app_location.truncate(app_location.lastIndexOf(QLatin1Char('/'))); app_location = QDir(app_location).canonicalPath(); - if (app_location != QLibraryInfo::location(QLibraryInfo::PluginsPath) && QFile::exists(app_location) && !app_libpaths->contains(app_location)) + if (QFile::exists(app_location) && !app_libpaths->contains(app_location)) app_libpaths->append(app_location); #endif } |