forked from qt-creator/qt-creator
Maemo: Move MADDE environment information out of MaemoToolChain class.
The toolchain is not available in all places where we need the respective information, which resulted in duplicated code.
This commit is contained in:
@@ -36,10 +36,10 @@
|
||||
|
||||
#include "maemoconstants.h"
|
||||
#include "maemodebugsupport.h"
|
||||
#include "maemoglobal.h"
|
||||
#include "maemoremotemountsmodel.h"
|
||||
#include "maemorunconfiguration.h"
|
||||
#include "maemoruncontrol.h"
|
||||
#include "maemotoolchain.h"
|
||||
|
||||
#include <projectexplorer/projectexplorerconstants.h>
|
||||
#include <debugger/debuggerconstants.h>
|
||||
@@ -169,10 +169,13 @@ bool MaemoRunControlFactory::canRun(RunConfiguration *runConfiguration,
|
||||
return false;
|
||||
const int freePortCount = maemoRunConfig->freePorts().count();
|
||||
|
||||
if (maemoRunConfig->toolchain()->allowsRemoteMounts() && freePortCount == 0)
|
||||
const QtVersion * const qtVersion
|
||||
= maemoRunConfig->activeQt4BuildConfiguration()->qtVersion();
|
||||
const bool remoteMountsAllowed = MaemoGlobal::allowsRemoteMounts(qtVersion);
|
||||
if (remoteMountsAllowed && freePortCount == 0)
|
||||
return false;
|
||||
const int mountDirCount
|
||||
= maemoRunConfig->toolchain()->allowsRemoteMounts()
|
||||
= remoteMountsAllowed
|
||||
? maemoRunConfig->remoteMounts()->validMountSpecificationCount()
|
||||
: 0;
|
||||
if (mode == Debugger::Constants::DEBUGMODE)
|
||||
|
||||
Reference in New Issue
Block a user