src/editmodes/selectMode.cpp

changeset 985
ed7b31b9f904
parent 984
a7b6f987d269
child 1006
a6b462051ae0
equal deleted inserted replaced
984:a7b6f987d269 985:ed7b31b9f904
118 if (ev->buttons() & Qt::LeftButton) 118 if (ev->buttons() & Qt::LeftButton)
119 { 119 {
120 renderer()->document()->clearSelection(); 120 renderer()->document()->clearSelection();
121 LDObject* obj = renderer()->pickOneObject (ev->x(), ev->y()); 121 LDObject* obj = renderer()->pickOneObject (ev->x(), ev->y());
122 122
123 if (obj != nullptr) 123 if (obj)
124 { 124 {
125 AddObjectDialog::staticDialog (obj->type(), obj); 125 AddObjectDialog::staticDialog (obj->type(), obj);
126 m_window->endAction(); 126 m_window->endAction();
127 return true; 127 return true;
128 } 128 }

mercurial