Is there a way to disable the function where you double click on a tab to close it? It's very annoying because I often do this accidentally and there's no undo for closing a tab.
Tools | Advanced options. Under the section "Main Frame" the option "Middle mouse button doesn't close tab (or double-click)". I don't think there is an option to disable only double click, and keep the middle mouse button active.