116 return true; |
116 return true; |
117 |
117 |
118 if (ev->buttons() & Qt::LeftButton) |
118 if (ev->buttons() & Qt::LeftButton) |
119 { |
119 { |
120 renderer()->document()->clearSelection(); |
120 renderer()->document()->clearSelection(); |
121 LDObjectPtr 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 != null) |
124 { |
124 { |
125 AddObjectDialog::staticDialog (obj->type(), obj); |
125 AddObjectDialog::staticDialog (obj->type(), obj); |
126 g_win->endAction(); |
126 g_win->endAction(); |