summaryrefslogtreecommitdiffstats
path: root/qmake/option.cpp
diff options
context:
space:
mode:
authorOswald Buddenhagen <oswald.buddenhagen@nokia.com>2012-08-28 10:12:36 +0200
committerQt by Nokia <qt-info@nokia.com>2012-09-05 03:03:12 +0200
commitb32f3ba9e4d9a24ddb10c6c5901e2d299aea23ca (patch)
treeab7f51ee0cdb59581b768c0900d615faa57bddc4 /qmake/option.cpp
parent791cb024637e865e98b336bc63b8e1fcbae3befc (diff)
remove pretenses of supporting projects on stdin
this may have worked a decade ago, but now it only produces funny Makefiles (and needs hacking main.cpp). the feature doesn't seem *too* important, so just clean it out. Change-Id: I50a60b0e30341f0b523e4a5731c770c9c1013f8b Reviewed-by: Daniel Teske <daniel.teske@nokia.com> Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
Diffstat (limited to 'qmake/option.cpp')
-rw-r--r--qmake/option.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/qmake/option.cpp b/qmake/option.cpp
index 7f0b4aab3b..1a663c14c5 100644
--- a/qmake/option.cpp
+++ b/qmake/option.cpp
@@ -512,8 +512,7 @@ Option::init(int argc, char **argv)
void Option::prepareProject(const QString &pfile)
{
- QString srcpath = (pfile != "-")
- ? QDir::cleanPath(QFileInfo(pfile).absolutePath()) : qmake_getpwd();
+ QString srcpath = QDir::cleanPath(QFileInfo(pfile).absolutePath());
if (srcpath != output_dir) {
if (!srcpath.endsWith(QLatin1Char('/')))
srcpath += QLatin1Char('/');