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:
kogaki 2016-04-08 20:08:09 +09:00
commit 6f84e74154

View file

@ -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;