Would you like to react to this message? Create an account in a few clicks or log in to continue.

You are not connected. Please login or register

(minor) bug: V1.0.0 filetype mismatch for save as dialogue

2 posters

Go down  Message [Page 1 of 1]

TimFisch

TimFisch

In order to save a file, one has to write the filetype "simu" in the textbox of the save dialogue, the filetype "sim1" is not allowed.
The file however will be stores as sim1 type..



Last edited by arcachofo on Tue Jan 04, 2022 2:14 pm; edited 1 time in total (Reason for editing : Marked as solved (green color))

https://wiki.mexle.hs-heilbronn.de/

arcachofo

arcachofo

I can't reproduce the issue or I don't undertand it.

I can write whatever I want in the textbox and it gets saved:

- If the name ends in .sim1, it is not changed.
- If the name ends in .simu, it is changed to .sim1.
- In any other case .sim1 is just added.

(minor) bug: V1.0.0 filetype mismatch for save as dialogue  Save10

TimFisch

TimFisch

When I insert "test.sim1" on R768 at WIN10 and push return, a message appears "the filename is not valid" scratch

https://wiki.mexle.org/_media/blog/notvalid.jpg

https://wiki.mexle.hs-heilbronn.de/

arcachofo

arcachofo

When I insert "test.sim1" on R768 at WIN10 and push return, a message appears "the filename is not valid"
Ok, I undestand.
Must be a Windows issue.

What if you select "All files (*.*) as filter?

In Linux the filter only affects the files shown, maybe in Windows it forces the extension to the filter selected?

EDIT: What if you don't use extension at all?

TimFisch

TimFisch

The picture is similar, when I use "All files (*.*)" and write "test" (i.e. w/o type), but I can save it then via "test.sim1" (i.e. with type).

Interestingly, I can save it by writing "test.simu" for both extension choices - it is then both times shown in the explorer as "test.sim1"..

https://wiki.mexle.hs-heilbronn.de/

arcachofo

arcachofo

I don't understand what is the logic behind...

For linux, extensions don't matter, it is just part of the name, you can save any file with any extension.
It is applications that can accept or not certain extensions or do whatever they want.

In Windows, the OS can accept or reject some extensions if it think it's "correct" or not.

Investigating this, I found that in Linux Qt uses it's own dialog to save files, but in Windows it uses the system dialog.
Looks like Windows dialog for saving is using the filter not only to show files but to filter the name entered.

I see that *.* forces to write an extension and accepts both .simu and .sim1, this makes sense.
The weird thing is that *.sim* accepts .simu but not .sim1.

I think that I will try just removing the filters and see what happens....

arcachofo

arcachofo

File name filters set to "All files (*.*)" only at Rev 791.
Let's see how it works...

Sponsored content



Back to top  Message [Page 1 of 1]

Permissions in this forum:
You cannot reply to topics in this forum