How can I prevent accidentally quitting an application?

I use Adium, but if I set a "Quit Confirmation" in the advanced preferences, it cancels log out. If I don't, it is way too easy to quit it, since it gets focused between apps sometimes.

Is there any way I can have a "Quit Confirmation" show up when I try to quit Adium, except when I am logging out or shutting down the OS?

enter image description here


Solution 1:

You can do the following to make it a little bit harder to quit Adium by accident. I think this should solve your problem.

Start by opening System Preferences > Keyboard.

System Preferences Keyboard

  1. Click Keyboard Shortcuts in the pillbox above.
  2. Make sure you have Application Shortcuts selected in the left bar.
  3. Click the + button to add a new shortcut.

Add Keyboard Shortcut

  1. Select Adium from the Application dropdown.
  2. Type "Quit" in the menu title field.
  3. Put your cursor in the Keyboard Shortcut field and type Command-Option-Q
  4. Click Add

Add Adium shortcut

And you're done. You can close your System Preferences because the Quit command in Adium has been remapped to a less-likely-to-be-accidentally-typed shortcut.