Commit 5bfbe16c authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[FIX] menu opens when releasing middle mouse button

parent 0c3d8350
......@@ -22,6 +22,9 @@
//
//---------------------------------------------------------------------------
#include <vector>
#include <string>
#include "core/common/WLogger.h"
#include "core/common/WStringUtils.h"
......
......@@ -93,7 +93,7 @@ void WQtNetworkEditorView::mouseDoubleClickEvent( QMouseEvent* event )
{
m_addMenu->popup( event->globalPos() );
}
else if ( event->modifiers() == Qt::NoModifier )
else if( event->modifiers() == Qt::NoModifier )
{
// plain double-click -> open file
emit loadAction();
......@@ -112,7 +112,6 @@ void WQtNetworkEditorView::mousePressEvent( QMouseEvent* event )
// also ignore middle mouse button
if( event->button() == Qt::MidButton )
{
m_addMenu->popup( event->globalPos() );
return;
}
......@@ -127,7 +126,7 @@ void WQtNetworkEditorView::mouseReleaseEvent( QMouseEvent* event )
// middle mouse button release: open add-menu
if( event->button() == Qt::MidButton )
{
m_addMenu->popup( event->globalPos() );
return;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment