Opened 5 years ago

Closed 5 years ago

#91 closed defect (fixed)

Double-clicking files in the save menu creates random files

Reported by: jdoe.ego@… 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 Thomas Bernard, 5 years ago

Owner: changed from pulkomandy to Thomas Bernard
Status: newaccepted

I reproduce on my FreeBSD machine, but without the file being created

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 "��" !
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.

comment:3 by Thomas Bernard, 5 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 Thomas Bernard, 5 years ago

comment:5 by Thomas Bernard, 5 years ago

Resolution: fixed
Status: acceptedclosed
Note: See TracTickets for help on using tickets.