Add custom browsing for executable files that checks permissions

This commit is contained in:
baldurk
2016-11-21 16:46:19 +01:00
parent b2464e1c64
commit a85eb017a3
3 changed files with 87 additions and 2 deletions
+1 -2
View File
@@ -283,8 +283,7 @@ void CaptureDialog::on_exePathBrowse_clicked()
// if(m_Core.Renderer.Remote == null)
{
QString filename = RDDialog::getOpenFileName(this, tr("Choose executable"), initDir,
"Executable files (*.exe);;All files (*.*)");
QString filename = RDDialog::getExecutableFileName(this, tr("Choose executable"), initDir);
if(filename != "")
setExecutableFilename(filename);