forked from qt-creator/qt-creator
RemoteLinux: Fix crash on Windows
We must not access the X11ForwardingAspect unconditionally, as it only exists on Linux hosts. Fixes: QTCREATORBUG-22414 Change-Id: I205d55b5ec318e3a8cae8e27379f84cd6d459ee0 Reviewed-by: hjk <hjk@qt.io>
This commit is contained in:
@@ -104,8 +104,8 @@ QString RemoteLinuxCustomRunConfiguration::runConfigDefaultDisplayName()
|
|||||||
Runnable RemoteLinuxCustomRunConfiguration::runnable() const
|
Runnable RemoteLinuxCustomRunConfiguration::runnable() const
|
||||||
{
|
{
|
||||||
ProjectExplorer::Runnable r = RunConfiguration::runnable();
|
ProjectExplorer::Runnable r = RunConfiguration::runnable();
|
||||||
r.extraData.insert("Ssh.X11ForwardToDisplay",
|
if (const auto * const forwardingAspect = aspect<X11ForwardingAspect>())
|
||||||
aspect<X11ForwardingAspect>()->display(macroExpander()));
|
r.extraData.insert("Ssh.X11ForwardToDisplay", forwardingAspect->display(macroExpander()));
|
||||||
return r;
|
return r;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user