EntryPushButton: Enter drag mode only for user entries

Maybe the decision should not be up to the button, but
for now this will do.
Este commit está contenido en:
Albert S. 2020-09-13 15:22:16 +02:00
padre 27ac3155d3
commit 2a9292958b
Se han modificado 1 ficheros con 4 adiciones y 0 borrados

Ver fichero

@ -77,6 +77,10 @@ void EntryPushButton::mousePressEvent(QMouseEvent *event)
void EntryPushButton::mouseMoveEvent(QMouseEvent *event)
{
if(! this->config.userEntry)
{
return;
}
if(!(event->buttons() & Qt::LeftButton))
{
return;