mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-25 03:12:56 +00:00
correct directory existence check in QCoreApplicationPrivate::appendApplicationPathToLibraryPaths()
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
This commit is contained in:
parent
27ad676041
commit
a573c906ec
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ void QCoreApplicationPrivate::appendApplicationPathToLibraryPaths()
|
|||
QString app_location( QCoreApplication::applicationFilePath() );
|
||||
app_location.truncate(app_location.lastIndexOf(QLatin1Char('/')));
|
||||
app_location = QDir(app_location).canonicalPath();
|
||||
if (QFile::exists(app_location) && !app_libpaths->contains(app_location))
|
||||
if (QDir(app_location).exists() && !app_libpaths->contains(app_location))
|
||||
app_libpaths->append(app_location);
|
||||
#endif
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue