]> git.sesse.net Git - kdenlive/commitdiff
rotoscoping: prevent context menu when closing the spline using right mouse button
authorTill Theato <root@ttill.de>
Sat, 5 Mar 2011 22:51:24 +0000 (22:51 +0000)
committerTill Theato <root@ttill.de>
Sat, 5 Mar 2011 22:51:24 +0000 (22:51 +0000)
svn path=/trunk/kdenlive/; revision=5480

src/monitor.cpp

index 27e1758b65f7c68f687e1858e6dd15fd2c4f7795..720d667487406e8fd6f1e9e78ba311c22e46f7d8 100644 (file)
@@ -456,7 +456,9 @@ void Monitor::mousePressEvent(QMouseEvent * event)
             m_dragStarted = true;
             m_DragStartPosition = event->pos();
         }
-    } else m_contextMenu->popup(event->globalPos());
+    } else if (!m_effectWidget || !m_effectWidget->isVisible()) {
+        m_contextMenu->popup(event->globalPos());
+    }
 }
 
 void Monitor::slotSwitchFullScreen()