| 1899 pick (ev->x(), ev->y()); |
1897 pick (ev->x(), ev->y()); |
| 1900 |
1898 |
| 1901 if (selection().isEmpty()) |
1899 if (selection().isEmpty()) |
| 1902 return; |
1900 return; |
| 1903 |
1901 |
| 1904 g_win->beginAction (null); |
|
| 1905 LDObject* obj = selection().first(); |
1902 LDObject* obj = selection().first(); |
| 1906 AddObjectDialog::staticDialog (obj->getType(), obj); |
1903 AddObjectDialog::staticDialog (obj->getType(), obj); |
| 1907 g_win->endAction(); |
1904 g_win->endAction(); |
| 1908 ev->accept(); |
1905 ev->accept(); |
| 1909 } |
1906 } |