From 4f2351d82647c736b4f4ae3b362e5e91de8d0d63 Mon Sep 17 00:00:00 2001 From: TurnMeOn Date: Mon, 25 Dec 2017 22:08:26 +0800 Subject: [PATCH] =?UTF-8?q?=E5=81=9C=E8=BD=A6=E6=89=8D=E8=83=BD=E5=8F=8C?= =?UTF-8?q?=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- car.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }