QFileDialog/win: pass only filename to IFileDialog::SetFileName()

One more place were we should only pass the filename instead the full
path to IFileDialog::SetFileName()
Amends 19c701d370

Pick-to: 6.7 6.6
Task-number: QTBUG-47159
Change-Id: I3ac36eb2b6b6fe84fe6985590da882b1d5733efa
Reviewed-by: Axel Spoerl <axel.spoerl@qt.io>
bb10
Christian Ehrlicher 2023-12-17 11:39:46 +01:00
parent 1edc866878
commit 2643210bd6
1 changed files with 1 additions and 1 deletions

View File

@ -1551,7 +1551,7 @@ QWindowsNativeDialogBase *QWindowsFileDialogHelper::createNativeDialog()
if (!info.isDir())
result->selectFile(info.fileName());
} else {
result->selectFile(url.path()); // TODO url.fileName() once it exists
result->selectFile(url.fileName());
}
}
// No need to select initialNameFilter if mode is Dir