src/gldraw.cc

changeset 587
507e5d5c348c
parent 581
c57ddcaf1b58
child 590
7aec744ce97b
equal deleted inserted replaced
586:89d1161197d3 587:507e5d5c348c
1524 return; 1524 return;
1525 } break; 1525 } break;
1526 } 1526 }
1527 1527
1528 if (objs.size() > 0) 1528 if (objs.size() > 0)
1529 { g_win->beginAction (null); 1529 { for (LDObject* obj : objs)
1530
1531 for (LDObject* obj : objs)
1532 { getFile()->addObject (obj); 1530 { getFile()->addObject (obj);
1533 compileObject (obj); 1531 compileObject (obj);
1534 } 1532 }
1535 1533
1536 g_win->refresh(); 1534 g_win->refresh();
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 }

mercurial