After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 689442 - Handle the directory being removed while it is being viewed
Handle the directory being removed while it is being viewed
Status: RESOLVED FIXED
Product: easytag
Classification: Other
Component: general
2.1.x
Other All
: Normal critical
: 2.1
Assigned To: EasyTAG maintainer(s)
EasyTAG maintainer(s)
Depends on:
Blocks:
 
 
Reported: 2012-12-01 18:07 UTC by David King
Modified: 2013-03-31 21:42 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
This proposed patch fixes the above Bug 689442. (1.09 KB, patch)
2013-03-20 11:50 UTC, Abhinav
committed Details | Review

Description David King 2012-12-01 18:07:34 UTC
EasyTAG crashes if the directory being viewed is removed:

https://sourceforge.net/tracker/?func=detail&aid=2861973&group_id=5216&atid=105216

Easytag 2.1.4. Load directory on a USB drive. Unmount the USB drive then click a directory to load it. Easytag will always crash.

This bug doesn't only happen with an USB drive but everywhere. 
Here is what I did :

Directory A > Directory B > Directory C > Directory D
We load Directory D in EasyTag. We delete Directory B so ( Directory B >
Directory C > Directory D) doesn't exist anymore.
We can still see all the directories in EasyTag, this is normal because we
haven't "refresh" Easytag.
We load Directory C and an error message appears and says that Directory C
doesn't exist.
Automatically, EasyTag will try to load the parent directory, in this case
it is Directory B.
Once again an error message appears and say that Directory B doesn't exist.
At this stage there are no problems, the software behaves as we expect it
to.
The problem is when EasyTag load Directory A. Directory A is still at his
right place but the program crashes when it loads it.

(Easytag 2.1.6 on Ubuntu 9.10)
Comment 1 Abhinav 2013-03-20 11:50:27 UTC
Created attachment 239345 [details] [review]
This proposed patch fixes the above Bug 689442.
Comment 2 David King 2013-03-20 15:12:29 UTC
Comment on attachment 239345 [details] [review]
This proposed patch fixes the above Bug 689442.

I pushed a slightly-modified patch to master as commit 1001033d686b303ddd46631576e3834ef8c636bd, thanks.