Opened 4 years ago
Closed 4 years ago
#91 closed defect (fixed)
Double-clicking files in the save menu creates random files
Reported by: | Owned by: | Thomas Bernard | |
---|---|---|---|
Priority: | minor | Milestone: | 2.6 |
Component: | GrafX2 | Version: | 2.6 |
Keywords: | Cc: |
Description
When double-clicking files in the save menu, the screen flashes red and files like "ØόU" are created in the working directory. Like this:
me@mypc:~/tmp$ ls
bug.png
me@mypc:~/tmp$ grafx2 bug.png
Warning in file filesel.c, line 2311, function Button_Load_or_Save : cannot chdir to "bug.png" !
Error number 0 occured in file filesel.c, line 2314, function Button_Load_or_Save.
Warning in file filesel.c, line 2311, function Button_Load_or_Save : cannot chdir to "¸8KkU" !
Error number 0 occured in file filesel.c, line 2314, function Button_Load_or_Save.
Warning in file loadsave.c, line 561, function Load_image : Cannot open file for reading
Error number 0 occured in file loadsave.c, line 562, function Load_image.
me@mypc:~/tmp$ ls
?8K?kU bug.png
I'm using grafx2 compiled from git commit 8e4abd357bede523531ee2f55a2034e5cc651281 on debian 9.3.
Change History (5)
comment:1 by , 4 years ago
Owner: | changed from | to
---|---|
Status: | new → accepted |
comment:2 by , 4 years ago
comment:3 by , 4 years ago
for the record, the bug happens only when the file selector is first open with a file preselected
I think that happens only when loading a file from the command line and opening the Save dialog...
comment:4 by , 4 years ago
hum looks like I mixed up file and directory type...
look at commit 06d0281956d96760be03bd318420cc7ef6934a54 instead
https://gitlab.com/miniupnp/grafX2/commit/06d0281956d96760be03bd318420cc7ef6934a54
comment:5 by , 4 years ago
Resolution: | → fixed |
---|---|
Status: | accepted → closed |
I reproduce on my FreeBSD machine, but without the file being created