aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorhjk <hjk@qt.io>2017-11-13 17:57:30 +0100
committerhjk <hjk@qt.io>2017-11-14 12:14:49 +0000
commit5f3363df596027667a1fda4dc1df42476e2e5ade (patch)
tree0a041a20945898e7da380112d9854fd4bd0020cf /src
parent895eed7164f247e64a21fa94e1264e8b5d93db89 (diff)
DeviceUsedPortGatherer: Clear used port list on (re)start, not stop
It's typically query handled after stop() (triggered by process finished), clearing the list then would essentially discard the result of the operation. Change-Id: I12fb09249f8437009d3365fadcca222855468cd7 Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/projectexplorer/devicesupport/deviceusedportsgatherer.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/projectexplorer/devicesupport/deviceusedportsgatherer.cpp b/src/plugins/projectexplorer/devicesupport/deviceusedportsgatherer.cpp
index a859097738..335933bee2 100644
--- a/src/plugins/projectexplorer/devicesupport/deviceusedportsgatherer.cpp
+++ b/src/plugins/projectexplorer/devicesupport/deviceusedportsgatherer.cpp
@@ -64,6 +64,7 @@ DeviceUsedPortsGatherer::~DeviceUsedPortsGatherer()
void DeviceUsedPortsGatherer::start(const IDevice::ConstPtr &device)
{
+ d->usedPorts.clear();
d->device = device;
QTC_ASSERT(d->device, emit error("No device given"); return);
@@ -88,7 +89,6 @@ void DeviceUsedPortsGatherer::start(const IDevice::ConstPtr &device)
void DeviceUsedPortsGatherer::stop()
{
- d->usedPorts.clear();
d->remoteStdout.clear();
d->remoteStderr.clear();
if (d->process)