forked from qt-creator/qt-creator
ProjectExplorer: Move default runnable setting
... to where it belongs, guarded by a check of RunConfigartion presence Change-Id: Ie2bfdea30fded81f12a6962c9717c8574fc14ba5 Reviewed-by: Christian Stenger <christian.stenger@qt.io>
This commit is contained in:
@@ -523,6 +523,7 @@ public:
|
|||||||
: q(parent), runMode(mode), runConfiguration(runConfiguration)
|
: q(parent), runMode(mode), runConfiguration(runConfiguration)
|
||||||
{
|
{
|
||||||
if (runConfiguration) {
|
if (runConfiguration) {
|
||||||
|
runnable = runConfiguration->runnable();
|
||||||
displayName = runConfiguration->displayName();
|
displayName = runConfiguration->displayName();
|
||||||
outputFormatter = runConfiguration->createOutputFormatter();
|
outputFormatter = runConfiguration->createOutputFormatter();
|
||||||
device = DeviceKitInformation::device(runConfiguration->target()->kit());
|
device = DeviceKitInformation::device(runConfiguration->target()->kit());
|
||||||
@@ -604,7 +605,6 @@ using namespace Internal;
|
|||||||
RunControl::RunControl(RunConfiguration *runConfiguration, Core::Id mode) :
|
RunControl::RunControl(RunConfiguration *runConfiguration, Core::Id mode) :
|
||||||
d(new RunControlPrivate(this, runConfiguration, mode))
|
d(new RunControlPrivate(this, runConfiguration, mode))
|
||||||
{
|
{
|
||||||
d->runnable = runConfiguration->runnable();
|
|
||||||
#ifdef WITH_JOURNALD
|
#ifdef WITH_JOURNALD
|
||||||
JournaldWatcher::instance()->subscribe(this, [this](const JournaldWatcher::LogEntry &entry) {
|
JournaldWatcher::instance()->subscribe(this, [this](const JournaldWatcher::LogEntry &entry) {
|
||||||
if (entry.value("_MACHINE_ID") != JournaldWatcher::instance()->machineId())
|
if (entry.value("_MACHINE_ID") != JournaldWatcher::instance()->machineId())
|
||||||
|
|||||||
Reference in New Issue
Block a user