Remove unused config variable LastCaptureExe

* In the .NET UI this was used to pre-fill the executable selection dialog, but
  it's unnecessary and hasn't been missed.
This commit is contained in:
baldurk
2018-09-06 10:59:15 +01:00
parent 57cf95783d
commit 5145478d19
2 changed files with 0 additions and 10 deletions
@@ -568,7 +568,6 @@ bool CaptureDialog::checkAllowClose()
void CaptureDialog::on_exePathBrowse_clicked()
{
QString initDir;
QString file;
QFileInfo f(ui->exePath->text());
QDir dir = f.dir();
@@ -579,8 +578,6 @@ void CaptureDialog::on_exePathBrowse_clicked()
else if(!m_Ctx.Config().LastCapturePath.isEmpty())
{
initDir = m_Ctx.Config().LastCapturePath;
if(!m_Ctx.Config().LastCaptureExe.isEmpty())
file = m_Ctx.Config().LastCaptureExe;
}
QString filename;
@@ -927,7 +924,6 @@ void CaptureDialog::SetExecutableFilename(const rdcstr &filename)
if(!m_Ctx.Replay().CurrentRemote())
{
m_Ctx.Config().LastCapturePath = QFileInfo(fn).absolutePath();
m_Ctx.Config().LastCaptureExe = QFileInfo(fn).completeBaseName();
}
}