summaryrefslogtreecommitdiff
path: root/src/plugins/qt4projectmanager/qmakestep.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qt4projectmanager/qmakestep.cpp')
-rw-r--r--src/plugins/qt4projectmanager/qmakestep.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/qt4projectmanager/qmakestep.cpp b/src/plugins/qt4projectmanager/qmakestep.cpp
index 0a99e24105..30bf73e05d 100644
--- a/src/plugins/qt4projectmanager/qmakestep.cpp
+++ b/src/plugins/qt4projectmanager/qmakestep.cpp
@@ -131,9 +131,9 @@ QString QMakeStep::allArguments(bool shorted)
if (bc->subNodeBuild())
arguments << QDir::toNativeSeparators(bc->subNodeBuild()->path());
else if (shorted)
- arguments << QDir::toNativeSeparators(QFileInfo(project()->file()->fileName()).fileName());
+ arguments << QDir::toNativeSeparators(QFileInfo(project()->document()->fileName()).fileName());
else
- arguments << QDir::toNativeSeparators(project()->file()->fileName());
+ arguments << QDir::toNativeSeparators(project()->document()->fileName());
arguments << QLatin1String("-r");
bool userProvidedMkspec = false;