Ticket #4722 (closed: fixed)
MUON: Add the file extension when saving grouping files on a Mac.
Reported by: | Robert Whitley | Owned by: | Peter Parker |
---|---|---|---|
Priority: | major | Milestone: | Release 2.0 |
Component: | Mantid | Keywords: | |
Cc: | Blocked By: | ||
Blocking: | Tester: | Stuart Campbell |
Description
Currently you have to specify the .xml on the end of the file name to make it save as an xml file on the mac.
Change History
comment:1 Changed 9 years ago by Robert Whitley
- Status changed from new to accepted
- Milestone changed from Iteration 33 to Iteration 32
comment:2 Changed 9 years ago by Robert Whitley
Refs #4722. Have only one file type for saving grouping files.
Changeset: 19557bd2533da329984c864bdd14557a10fb8f09
comment:3 Changed 9 years ago by Robert Whitley
Didn't work, more research done...
http://developer.qt.nokia.com/doc/qt-4.8/qfiledialog.html#getSaveFileName
comment:4 Changed 9 years ago by Robert Whitley
Refs #4722. Use non-native file dialog.
Changeset: bfb8ecbe68dd8f44a73acf57bd90fb8f6dd4075f
comment:5 Changed 9 years ago by Robert Whitley
Refs #4722. Add extra filter back in.
Changeset: 38b2c918567a2e08bb1199419491fef74a7a410b
comment:6 Changed 9 years ago by Robert Whitley
Revert "Refs #4722. Add extra filter back in."
This reverts commit 38b2c918567a2e08bb1199419491fef74a7a410b.
Changeset: 97f581c2770adcb658e6ef569b25197cd0a67050
comment:7 Changed 9 years ago by Robert Whitley
Refs #4722. Add extra filter.
Changeset: 046b84e93a84a438c44a147b76c75f577a995b4b
comment:8 Changed 9 years ago by Robert Whitley
To test,
1) Open up muon analysis, go to grouping tab.
2) There are three buttons at the top, click load and load .xml file in the current folder.
3) This should populate the tables.
4) Now try to save without putting .xml at the end of the string. eg enter "test" as the file name and click save. (make sure the filter is set to .xml .XML)
5) Clear the grouping and try and load the file you saved.
6) You should notice that the extension .xml was automatically added and that it loaded with no problems.
comment:9 Changed 9 years ago by Robert Whitley
- Status changed from accepted to verify
- Resolution set to fixed
comment:10 Changed 9 years ago by Peter Parker
- Owner changed from Robert Whitley to Peter Parker
- Status changed from verify to assigned
comment:12 Changed 9 years ago by Peter Parker
- Status changed from accepted to verify
Ok, I accidentally changes the status to assigned instead of verifying. Setting to fixed again ...
comment:13 Changed 9 years ago by Stuart Campbell
- Status changed from verify to verifying
- Tester set to Stuart Campbell
comment:14 Changed 9 years ago by Stuart Campbell
- Status changed from verifying to closed
It seems to work well on a Mac - used Mac OS X 10.7.2 (Lion).
I did notice that it does not work on Linux though. I have created a ticket on the next iteration to fix this... see #4726
comment:15 Changed 9 years ago by Robert Whitley
Refs #4722. Use non-native file dialog.
Changeset: bfb8ecbe68dd8f44a73acf57bd90fb8f6dd4075f
comment:16 Changed 9 years ago by Robert Whitley
Refs #4722. Add extra filter back in.
Changeset: 38b2c918567a2e08bb1199419491fef74a7a410b
comment:17 Changed 9 years ago by Robert Whitley
Revert "Refs #4722. Add extra filter back in."
This reverts commit 38b2c918567a2e08bb1199419491fef74a7a410b.
Changeset: 97f581c2770adcb658e6ef569b25197cd0a67050
comment:18 Changed 9 years ago by Robert Whitley
Refs #4722. Add extra filter.
Changeset: 046b84e93a84a438c44a147b76c75f577a995b4b
comment:19 Changed 5 years ago by Stuart Campbell
This ticket has been transferred to github issue 5569
I think I have found what could be causing the problem. Researching how QFileDialog works on Mac I have found a thread that seems to suggest mac doesn't add the file extension unless it is unique.
e.g. "PNG (*.png)" as opposed to "Images (*.png, *.jpg, *.bmp)"