[Gambas-user] Save file dialog prepends path to Name field?
Benoît Minisini
gambas at ...1...
Sat Mar 7 10:50:26 CET 2009
> I noticed that the typical GTK "save" dialog shows the file name in the
> "Name" field, but my simple test in Gambas prepends a path, such as
> "/home/user/," to the file name in that field.
>
> Is this correct behavior? It seems like it needs to be "fixed" because
> no matter which folder icon I click in the Save dialog, the prepended
> path will overrule it until I type the path in myself.
>
> Here's the code I'm working with, from a tutorial:
>
> PUBLIC SUB btnSave_Click()
>
> Dialog.Filter = ["*.txt", "Text Files"]
> IF Dialog.SaveFile() THEN RETURN
> File.Save(Dialog.Path, TextAreaEdit.Text)
> CATCH
> Message.Error(Error.Text)
> END
>
>
>
> Gambas version 2.0.0, Ubuntu 8.04.
Oops, a very old bug! I fixed it in revision #1901.
Regards,
--
Benoît
More information about the User
mailing list