forked from qt-creator/qt-creator
Unblock device test dialog on Qt 5.
Do not open the dialog with the wizard as parent after QWizard::exec() has finished. Task-number: QTBUG-27039 Change-Id: I51d5d9fa07adca0570c2b91b50f84e143e592309 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -90,7 +90,9 @@ IDevice::Ptr GenericLinuxDeviceConfigurationWizard::device()
|
|||||||
Core::Id(Constants::GenericLinuxOsType), IDevice::Hardware);
|
Core::Id(Constants::GenericLinuxOsType), IDevice::Hardware);
|
||||||
device->setFreePorts(Utils::PortList::fromString(QLatin1String("10000-10100")));
|
device->setFreePorts(Utils::PortList::fromString(QLatin1String("10000-10100")));
|
||||||
device->setSshParameters(sshParams);
|
device->setSshParameters(sshParams);
|
||||||
LinuxDeviceTestDialog dlg(device, new GenericLinuxDeviceTester(this), this);
|
// Might be called after accept.
|
||||||
|
QWidget *parent = isVisible() ? this : static_cast<QWidget *>(0);
|
||||||
|
LinuxDeviceTestDialog dlg(device, new GenericLinuxDeviceTester(this), parent);
|
||||||
dlg.exec();
|
dlg.exec();
|
||||||
return device;
|
return device;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user