Line
Link Here
|
0 |
-- a/libmolsketch/molscene.cpp |
0 |
++ b/libmolsketch/molscene.cpp |
Lines 842-848
Link Here
|
842 |
void MolScene::dragEnterEvent(QGraphicsSceneDragDropEvent *event) |
842 |
void MolScene::dragEnterEvent(QGraphicsSceneDragDropEvent *event) |
843 |
{ |
843 |
{ |
844 |
if (!event->mimeData() || !event->mimeData()->hasFormat(mimeType())) return; |
844 |
if (!event->mimeData() || !event->mimeData()->hasFormat(mimeType())) return; |
845 |
if (!event->proposedAction() == Qt::CopyAction) return; |
845 |
if ((!event->proposedAction()) == Qt::CopyAction) return; |
846 |
event->accept(); |
846 |
event->accept(); |
847 |
for (genericAction* action : sceneActions()) |
847 |
for (genericAction* action : sceneActions()) |
848 |
action->setChecked(false); |
848 |
action->setChecked(false); |