|Anonymous | Login||08-10-2020 01:41 UTC|
|Main | My View | View Issues | Change Log | Docs|
|Viewing Issue Simple Details [ Jump to Notes ]||[ View Advanced ] [ Issue History ] [ Print ]|
|ID||Category||Severity||Reproducibility||Date Submitted||Last Update|
|0001468||[tweak] Any||trivial||always||07-15-05 01:32||07-15-05 02:31|
|Summary||0001468: filedialog - multiple InvalidDirectoryErrors when we should get only one or none, imo.|
when initializing a filedialog with an invalid directory,
the user gets the following aptly-titled dialog:
"An problem has occured: InvalidDirectoryError" [sic].
.. Which is possibly reasonable, altho personally i would prefer
not to be notified of that and just have the browser choose either
the current directory or the root directory as default.
However, the error dialog must be "Abort"ed three times before
it finally goes away and all is finally well with the world.
Why are you initializing a dialog with an invalid directory you ask ?
our app keeps track of a 'user's last directory' so that the filebrowser
opens up in a convenient spot.
We then use the app to load a default scene, say, and save the resulting squeak image.
We then pass that .image on to a user, who possibly installs it in a different location.
True, we should check the directory before trying to browse it,
but since we're obviously going to choose some default directory,
i think the file browser could just do that rather than sending up
scary-looking errors in triplicate.
(0001803 - 220 - 322 - 322 - 322 - 322 - 322)
A very simple solution to this problem is to add a line saying:
ifFalse:[lastUsedDirectory := FileDirectory default].
and only then:
fileDialog directory: lastUsedDirectory.
(0001804 - 139 - 163 - 163 - 163 - 163 - 163)
i just think that functionality should be in the dialog,
with perhaps one notification if the problem occurs.
(0001806 - 126 - 126 - 126 - 126 - 126 - 126)
|Yes I agree, something needs to be done here but I was just trying to be helpful and offer a workaround for the short term ;-)|
(0001807 - 14 - 14 - 14 - 14 - 14 - 14)
|07-15-05 01:32||elenzil||New Issue|
|07-15-05 02:11||andreas||Note Added: 0001803|
|07-15-05 02:18||elenzil||Note Added: 0001804|
|07-15-05 02:28||andreas||Note Added: 0001806|
|07-15-05 02:31||elenzil||Note Added: 0001807|
| Mantis 1.0.8[^]
Copyright © 2000 - 2007 Mantis Group
44 total queries executed.|
33 unique queries executed.