diff --git a/car.cpp b/car.cpp index 5d01f38..d01d603 100644 --- a/car.cpp +++ b/car.cpp @@ -298,7 +298,7 @@ void Car::setPlateNumber(const QString &number) { void Car::mouseDoubleClickEvent(QGraphicsSceneMouseEvent *event) { - if(event->button()==Qt::LeftButton) + if(m_status==parking&&event->button()==Qt::LeftButton) emit out(this,-1); event->accept(); }