-
Bug
-
Resolution: Fixed
-
P3: Somewhat important
-
5.4.0
-
None
-
Windows 7, Qt 5.4.0
-
19c701d37 (dev), 4938b234a (6.7), 93ed05edf (6.6), 2643210bd (dev), 3252ef72d (6.7), 55d4ee658 (6.6)
We have a rather modularised application where a core library allows opening a file save dialog. While writing a test, I tried popping up the file dialog, set a predetermined file name, then check if that value was propagated properly across the layers in the application.
This is on Windows, so I tried
```
dialog->selectFile(QDir::toNativeSeparators(file.fileName()));
```
However, this dialog that opens, does not have native separators, resulting in the test failing, because hitting enter results in Windows telling me I entered an invalid path.
I tried creating a simple example that shows the issue. It tried to strip as much as possible.