mirror of
https://github.com/tnodir/fort
synced 2024-11-15 09:45:44 +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())
|
if (filePath.isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
const auto appPath = FileUtil::toNativeSeparators(filePath);
|
||||||
|
|
||||||
if (isWildcard()) {
|
if (isWildcard()) {
|
||||||
TextAreaUtil::appendText(m_editWildcard, filePath);
|
TextAreaUtil::appendText(m_editWildcard, appPath);
|
||||||
} else {
|
} else {
|
||||||
m_editPath->setText(filePath);
|
m_editPath->setText(appPath);
|
||||||
}
|
}
|
||||||
|
|
||||||
fillEditName(); // Auto-fill the name
|
fillEditName(); // Auto-fill the name
|
||||||
|
Loading…
Reference in New Issue
Block a user