Commit 094e4894 authored by Sebastian Eichelbaum's avatar Sebastian Eichelbaum
Browse files

[FIX #259] - fixed bug where modules get added without explicitely clicking on them.

parent 2bd36bf1
......@@ -30,7 +30,9 @@ WQtPushButton::WQtPushButton( QIcon icon, QString name, QWidget* parent, QString
: QPushButton( icon, label, parent )
{
m_name = name;
connect( this, SIGNAL( pressed() ), this, SLOT( emitPressed() ) );
// we need to use released signal here, as the pushed signal also gets emitted on newly created buttons which are under the mouse pointer with
// pressed left button.
connect( this, SIGNAL( released() ), this, SLOT( emitPressed() ) );
}
WQtPushButton::~WQtPushButton()
......
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