File-open dialog does not accept non-existing *.img files as target
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Image Writer |
Fix Released
|
High
|
Tobin Davis |
Bug Description
Version 0.8
Windows 7 x64 SP1
-------
Selecting an image file in the file-open dialog only works if that file already exists.
When you want to backup your memory card you also would like to use that file-dialog in order to specify the target *.img file.
Currently, the file-open dialog won't accept non-existing files. I propose a modification, that will enable your tool to accept non-existent files.
As of now, a workaround is to type or paste the target filename (including full path) directly into the text box. The [read] button becomes available then.
Some thoughts:
According to your code, you are only using QFileDialog:
A possible solution is to replace the READ and WRITE buttons with a START button and add another group with radio buttons as some sort of input information. Depending on which radio button has the bullet in it, you chose the appropriate file dialog.
I attached a screenshot of a possible GUI that shows what's in my minds eye.
Changed in win32-image-writer: | |
status: | Confirmed → In Progress |
assignee: | nobody → Tobin Davis (gruemaster) |
The GUI from the screenshot was quickly created with Qt Designer. If you find this useful, I give you the *.ui (XML format) below.