mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:38:16 +00:00
UI: Programs: Native separators for FileDialog paths
This commit is contained in:
parent
2d55ee11a3
commit
bc50cf7ae6
@ -337,10 +337,12 @@ QLayout *ProgramEditDialog::setupAppPathLayout()
|
||||
if (filePath.isEmpty())
|
||||
return;
|
||||
|
||||
const auto appPath = FileUtil::toNativeSeparators(filePath);
|
||||
|
||||
if (isWildcard()) {
|
||||
TextAreaUtil::appendText(m_editWildcard, filePath);
|
||||
TextAreaUtil::appendText(m_editWildcard, appPath);
|
||||
} else {
|
||||
m_editPath->setText(filePath);
|
||||
m_editPath->setText(appPath);
|
||||
}
|
||||
|
||||
fillEditName(); // Auto-fill the name
|
||||
|
Loading…
Reference in New Issue
Block a user