From dad5d6e07420a16d68e98ac95b0289f86cee1e5c Mon Sep 17 00:00:00 2001 From: baldurk Date: Fri, 8 Feb 2019 19:14:14 +0000 Subject: [PATCH] Display full name if executable has no path markers * Most likely this executable is an android app and we should display the full thing --- qrenderdoc/Windows/Dialogs/CaptureDialog.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/qrenderdoc/Windows/Dialogs/CaptureDialog.cpp b/qrenderdoc/Windows/Dialogs/CaptureDialog.cpp index adb682d5a..cc48658ce 100644 --- a/qrenderdoc/Windows/Dialogs/CaptureDialog.cpp +++ b/qrenderdoc/Windows/Dialogs/CaptureDialog.cpp @@ -108,8 +108,12 @@ void CaptureDialog::PopulateMostRecent() if(!settings.executable.isEmpty()) { ui->loadLastCapture->setEnabled(true); - ui->loadLastCapture->setText( - tr("Load Last Settings - %1").arg(QFileInfo(QString(settings.executable)).completeBaseName())); + if(settings.executable.indexOf('/') < 0 && settings.executable.indexOf('\\') < 0) + ui->loadLastCapture->setText(tr("Load Last Settings - %1").arg(QString(settings.executable))); + else + ui->loadLastCapture->setText( + tr("Load Last Settings - %1") + .arg(QFileInfo(QString(settings.executable)).completeBaseName())); return; } }