A very minor bug in new 5.15.0

Started by Liviu Lalescu, October 28, 2011, 02:20:50 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Liviu Lalescu

I noticed the first really minor bug in the same day I released the new FET-5.15.0:

Recent files, say you have 3 files. Then not exit FET, but remove/rename some with an external program. Try to open one wrong recent file. You get 2 message boxes. This is a part of the bug. But also the recent files don't get updated, to remove incorrect entries (when you press on a wrong recent file). See for instance in Qt Designer how they do it.

I hope nobody will "suffer" for this, until the next FET version.

Volker Dirr

#1
i am not sure, but i think you shouldn't update the list.

reason:
maybe it is nice if that list is updated as soon as fet wasn't
able to update it.

but on the other hand imagine this:
a user save on hard disk.
then also modify the data.
then he save on usb-stick and remove it.
some time later he try to open that file by resent files.
he get the error.

of course the error is correct!

now imagine what happen if you update the resent files list:
a) the user wonder and try to repeat. maybe he doesn't notice that the file
was removed from that list and he open the previous file from hard disk!
very critical! he use the old version from disk!
b) the user doesn't wonder, because he know he just need to
connect the usb-stick again. then he can open it. but if you removed it
from the list, then he can't reopen by recent files.

i my opinion the current behavier is logical and also more save.

you might get a more "bugfree" list, but you also get 2 disadvantages by that!

Liviu Lalescu

There is a point in what you say, but let me recapitulate the behavior:

1) If user quits FET and restarts it, or if he opens successfully a file, or if he clicks "New" file, or if he saves (as) his current file, the list of recently used files is updated, meaning that the inexisting files are removed.

2) The only inconsistent behavior is if the user has a list of correct recent files then, without closing the current FET, removes physically a file (from FET recent files list) with another program. Then, if he tries to open that recent file from FET, he will get two message boxes (not a single one, as it would be nicer), and the recent files list is not updated.

Are you still sure the advantage you are talking about is valid? Because if he quits and restarts FET, or does other operation from point (2), the list of recent files will be corrected.

Of course, I would love to know that this bug is a feature, so I won't have it on my mind, but the behavior in Qt Designer for instance is that point (2) is treated similarly to point (1).

Liviu Lalescu

I still consider this a bug and I fixed it for the next version (on my hard disk, for now).