[Gambas-bugtracker] Bug #1363: DirView.NewFolder rollback on renaming failure
bugtracker at gambaswiki.org
bugtracker at gambaswiki.org
Sun Jul 8 14:47:27 CEST 2018
http://gambaswiki.org/bugtracker/edit?object=BUG.1363&from=L21haW4-
Tobias BOEGE reported a new bug.
Summary
-------
DirView.NewFolder rollback on renaming failure
Type : Request
Priority : Medium
Gambas version : Unknown
Product : GUI components
Description
-----------
When you have a DirView (gb.form) and call its NewFolder method, a new directory is
created under a localised name and then you are immediately dropped into "rename mode"
for that directory. If the renaming fails, you are left with a new directory which
was not renamed. As a user, I click that "Create new folder" button because I want
a new folder of a certain name and not just any new folder. I would have expected the
NewFolder method to roll the creation of the directory back if renaming fails.
After playing a bit, I did discover that F2 can be used to try again to rename the
left-over directory. That may be enough, but I think rolling the creation back in case
of error is less surprising.
Implementation-wise, one could try to postpone the creation of that directory until
the user has specified the desired name.
More information about the Bugtracker
mailing list