Lines 618-624
Link Here
|
618 |
void MolScene::dragEnterEvent(QGraphicsSceneDragDropEvent *event) |
618 |
void MolScene::dragEnterEvent(QGraphicsSceneDragDropEvent *event) |
619 |
{ |
619 |
{ |
620 |
if (!event->mimeData() || !event->mimeData()->hasFormat(mimeType())) return; |
620 |
if (!event->mimeData() || !event->mimeData()->hasFormat(mimeType())) return; |
621 |
if (!event->proposedAction() == Qt::CopyAction) return; |
621 |
if ((!event->proposedAction()) == Qt::CopyAction) return; |
622 |
event->accept(); |
622 |
event->accept(); |
623 |
for (genericAction* action : sceneActions()) |
623 |
for (genericAction* action : sceneActions()) |
624 |
action->setChecked(false); |
624 |
action->setChecked(false); |