Prevent disk image automount when clicking Finder sidebar I have been playing around with the View &rarr; View Options in Finder and I must have touched something crtitcal because now whenever I click on a folder in Finder it automounts a disk image located on my external hard drive. The image is located in /Volumes/elements/App/myapp.dmg.

If I unplug the external hard drive, everything is back to normal. But when the external  hard drive is connected, it happens again. 

I could remove the file, but I want to find a better solution.

Edit: It does not matter if I move the dmg to another location (i.e: I move it to /Users/charasoverride/app.dmg), it gets automounted as well.

Update: It does not happen for every folder but it does for sidebar items. (Favourites, Devices, etc.)
I would suggest trying two things. As a disclaimer, I have no idea what could be causing this because it makes no sense. These are just some basic Finder troubleshooting steps:

Suggestion 1:


Open Terminal from /Applications/Utilities
Run the command killall Finder
Log out of your user account and log back in
Try again


Suggestion 2:


Open Finder
Navigate to ~/Library/Preferences
Move the files com.apple.finder.plist and com.apple.finder.plist.lockfile to the Desktop
Log out of your user account and log back in
Try again


If neither of these suggestions work, I don't know what else you could try. Other StackExchangers?