src/MainWindow.cc

changeset 640
d4dda62c6600
parent 639
851634b85893
child 642
751a8df42842
equal deleted inserted replaced
639:851634b85893 640:d4dda62c6600
301 301
302 LDObjectList selCopy = selection(); 302 LDObjectList selCopy = selection();
303 303
304 // Delete the objects that were being selected 304 // Delete the objects that were being selected
305 for (LDObject* obj : selCopy) 305 for (LDObject* obj : selCopy)
306 obj->deleteSelf(); 306 obj->destroy();
307 307
308 refresh(); 308 refresh();
309 return selCopy.size(); 309 return selCopy.size();
310 } 310 }
311 311
698 // TODO: what the heh? 698 // TODO: what the heh?
699 // 699 //
700 void MainWindow::deleteObjects (LDObjectList objs) 700 void MainWindow::deleteObjects (LDObjectList objs)
701 { 701 {
702 for (LDObject* obj : objs) 702 for (LDObject* obj : objs)
703 obj->deleteSelf(); 703 obj->destroy();
704 } 704 }
705 705
706 // ============================================================================= 706 // =============================================================================
707 // 707 //
708 void MainWindow::deleteByColor (const int colnum) 708 void MainWindow::deleteByColor (const int colnum)

mercurial