# HG changeset patch # User Chris Cannam # Date 1172499501 0 # Node ID efc8b5da414a3cb06e3f0bed25d13a9db465dc5a # Parent 99d44871334b28db72acc52fdffbd597cfc0975b * Fix occasional misplacement of zoom wheels * Disable tearoff in context menu (it always got activated when you just clicked and released) diff -r 99d44871334b -r efc8b5da414a main/MainWindow.cpp --- a/main/MainWindow.cpp Fri Feb 16 16:57:15 2007 +0000 +++ b/main/MainWindow.cpp Mon Feb 26 14:18:21 2007 +0000 @@ -339,7 +339,14 @@ { if (!m_mainMenusCreated) { m_rightButtonMenu = new QMenu(); - m_rightButtonMenu->setTearOffEnabled(true); + + // No -- we don't want tear-off enabled on the right-button + // menu. If it is enabled, then simply right-clicking and + // releasing will pop up the menu, activate the tear-off, and + // leave the torn-off menu window in front of the main window. + // That isn't desirable. I'm not sure it ever would be, in a + // context menu -- perhaps technically a Qt bug? +// m_rightButtonMenu->setTearOffEnabled(true); } if (m_rightButtonLayerMenu) {