| 658 // ============================================================================= |
658 // ============================================================================= |
| 659 // |
659 // |
| 660 void MainWindow::spawnContextMenu (const QPoint pos) |
660 void MainWindow::spawnContextMenu (const QPoint pos) |
| 661 { |
661 { |
| 662 const bool single = (Selection().size() == 1); |
662 const bool single = (Selection().size() == 1); |
| 663 LDObjectPtr singleObj = single ? Selection().first() : LDObjectPtr(); |
663 LDObjectPtr singleObj = single ? Selection().first() : nullptr; |
| 664 |
664 |
| 665 bool hasSubfiles = false; |
665 bool hasSubfiles = false; |
| 666 |
666 |
| 667 for (LDObjectPtr obj : Selection()) |
667 for (LDObjectPtr obj : Selection()) |
| 668 { |
668 { |