diff options
author | Andreas Kling <andreas.kling@nokia.com> | 2010-02-03 13:56:15 (GMT) |
---|---|---|
committer | Andreas Kling <andreas.kling@nokia.com> | 2010-02-03 13:56:15 (GMT) |
commit | 05a1573eddc6dc404631c9d16474c81aa4cea569 (patch) | |
tree | 6de26ef5ddd62af6177c9b723c78014cf8baab0e /qmake | |
parent | ac42da3e5196bba720a11dd2955e741037ee28f1 (diff) | |
download | Qt-05a1573eddc6dc404631c9d16474c81aa4cea569.zip Qt-05a1573eddc6dc404631c9d16474c81aa4cea569.tar.gz Qt-05a1573eddc6dc404631c9d16474c81aa4cea569.tar.bz2 |
Fixed QFileInfo::absolutePath() warning when running "qmake -project"
Task-number: QTBUG-7176
Reviewed-by: Benjamin Poulain <benjamin.poulain@nokia.com>
Diffstat (limited to 'qmake')
-rw-r--r-- | qmake/project.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/qmake/project.cpp b/qmake/project.cpp index c2e033e..4ce8ba4 100644 --- a/qmake/project.cpp +++ b/qmake/project.cpp @@ -3067,7 +3067,7 @@ QStringList &QMakeProject::values(const QString &_var, QMap<QString, QStringList place[var] = QStringList(pfile); } else if(var == QLatin1String("_PRO_FILE_PWD_")) { var = ".BUILTIN." + var; - place[var] = QStringList(QFileInfo(pfile).absolutePath()); + place[var] = QStringList(pfile.isEmpty() ? qmake_getpwd() : QFileInfo(pfile).absolutePath()); } else if(var == QLatin1String("_QMAKE_CACHE_")) { var = ".BUILTIN." + var; if(Option::mkfile::do_cache) |