aboutsummaryrefslogtreecommitdiffstats
path: root/src/plugins/qt4projectmanager/qt-maemo/maemorunfactories.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/qt4projectmanager/qt-maemo/maemorunfactories.cpp')
-rw-r--r--src/plugins/qt4projectmanager/qt-maemo/maemorunfactories.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/plugins/qt4projectmanager/qt-maemo/maemorunfactories.cpp b/src/plugins/qt4projectmanager/qt-maemo/maemorunfactories.cpp
index 49c42bef3c..d13f8639c0 100644
--- a/src/plugins/qt4projectmanager/qt-maemo/maemorunfactories.cpp
+++ b/src/plugins/qt4projectmanager/qt-maemo/maemorunfactories.cpp
@@ -167,8 +167,11 @@ bool MaemoRunControlFactory::canRun(RunConfiguration *runConfiguration,
|| maemoRunConfig->remoteExecutableFilePath().isEmpty())
return false;
const int freePortCount = maemoRunConfig->freePorts().count();
- if (freePortCount == 0)
+
+#if 0 // TODO: Enable if deployment-via-mount is enabled again, otherwise throw away.
+ if (maemoRunConfig->toolchain()->allowsRemoteMounts() && freePortCount == 0)
return false;
+#endif
const int mountDirCount
= maemoRunConfig->toolchain()->allowsRemoteMounts()
? maemoRunConfig->remoteMounts()->validMountSpecificationCount()