Distinguish between friendly and real hostnames for remote hosts

* This means we don't pass a friendly hostname internally to connect to,
  and we don't display a hostname where we want a friendly hostname.
This commit is contained in:
baldurk
2017-06-19 16:14:41 +01:00
parent d44528794a
commit 628e6481d5
5 changed files with 23 additions and 17 deletions
+3 -2
View File
@@ -316,7 +316,8 @@ void MainWindow::OnCaptureTrigger(const QString &exe, const QString &workingDir,
LiveCapture *live = new LiveCapture(
m_Ctx,
m_Ctx.Replay().CurrentRemote() ? m_Ctx.Replay().CurrentRemote()->Hostname : QString(),
ret, this, this);
m_Ctx.Replay().CurrentRemote() ? m_Ctx.Replay().CurrentRemote()->Name() : QString(), ret,
this, this);
ShowLiveCapture(live);
callback(live);
});
@@ -357,7 +358,7 @@ void MainWindow::OnInjectTrigger(uint32_t PID, const QList<EnvironmentModificati
return;
}
LiveCapture *live = new LiveCapture(m_Ctx, QString(), ret, this, this);
LiveCapture *live = new LiveCapture(m_Ctx, QString(), QString(), ret, this, this);
ShowLiveCapture(live);
});
});