src/editmodes/selectMode.cpp

changeset 984
a7b6f987d269
parent 977
dc3ceb65cda7
child 985
ed7b31b9f904
equal deleted inserted replaced
983:05ba93066194 984:a7b6f987d269
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 != null) 123 if (obj != nullptr)
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