summaryrefslogtreecommitdiffstats
path: root/src/Authoring/Studio/remotedeploymentsender.cpp
diff options
context:
space:
mode:
authorTomi Korpipaa <tomi.korpipaa@qt.io>2018-08-09 07:41:08 +0300
committerTomi Korpipää <tomi.korpipaa@qt.io>2018-08-09 08:14:44 +0000
commitee25892baa3de5fc254e7bbc65b8649f98e4d221 (patch)
tree6d6a868e5ffb115b275f3a9a36424c2cd6603e42 /src/Authoring/Studio/remotedeploymentsender.cpp
parent98c396c84d4a051c02ea16943cfab1930def0ce9 (diff)
Fix remote deployment of new project structure
Task-number: QT3DS-2051 Change-Id: Ie223c7e23f1f27a4b18ea408763928dbef500562 Reviewed-by: Miikka Heikkinen <miikka.heikkinen@qt.io> Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
Diffstat (limited to 'src/Authoring/Studio/remotedeploymentsender.cpp')
-rw-r--r--src/Authoring/Studio/remotedeploymentsender.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/Authoring/Studio/remotedeploymentsender.cpp b/src/Authoring/Studio/remotedeploymentsender.cpp
index a78fcd2d..113446a9 100644
--- a/src/Authoring/Studio/remotedeploymentsender.cpp
+++ b/src/Authoring/Studio/remotedeploymentsender.cpp
@@ -28,6 +28,8 @@
****************************************************************************/
#include "remotedeploymentsender.h"
+#include "StudioApp.h"
+#include "Core.h"
#include <QtCore/qpair.h>
#include <QtCore/qfile.h>
@@ -203,15 +205,15 @@ void RemoteDeploymentSender::streamProject(const QString &projectFile)
m_lastDeployed.clear();
}
- const QDir projectDirectory(fileInfo.absolutePath());
+ QString projectPath = g_StudioApp.GetCore()->getProjectFile().getProjectPath().toQString();
+
+ const QDir projectDirectory(projectPath);
// The file to be loaded
- const QString relativePath
- = projectDirectory.relativeFilePath(fileInfo.filePath());
+ const QString relativePath = projectDirectory.relativeFilePath(fileInfo.filePath());
int fileCount = 0;
- QDirIterator it(fileInfo.absolutePath(), QDir::Files,
- QDirIterator::Subdirectories);
+ QDirIterator it(projectPath, QDir::Files, QDirIterator::Subdirectories);
while (it.hasNext()) {
const QString filePath = it.next();
QFile file(filePath);