Merge pull request #152 from tomosu/fix_rclick_osx
add clean-up at the end of SceneViewer::contextMenuEvent for OSX
This commit is contained in:
commit
6f84e74154
1 changed files with 9 additions and 0 deletions
|
@ -957,6 +957,15 @@ using namespace ImageUtils;
|
|||
|
||||
void SceneViewer::contextMenuEvent(QContextMenuEvent *e)
|
||||
{
|
||||
|
||||
#ifdef MACOSX
|
||||
//cleaning-up mousePressedEvent on MacOSX instead of mouseReleaseEvent called
|
||||
m_mouseButton = Qt::NoButton;
|
||||
m_tabletEvent = false;
|
||||
m_pressure = 0;
|
||||
m_buttonClicked = false;
|
||||
#endif
|
||||
|
||||
if (m_freezedStatus != NO_FREEZED)
|
||||
return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue