145 if (selectedObjects().isEmpty()) |
145 if (selectedObjects().isEmpty()) |
146 return; |
146 return; |
147 |
147 |
148 QString filePath = QFileDialog::getSaveFileName(); |
148 QString filePath = QFileDialog::getSaveFileName(); |
149 |
149 |
150 if (filePath.length() == 0) |
150 if (filePath.isEmpty()) |
151 return; |
151 return; |
152 |
152 |
153 QFile file = {filePath}; |
153 QFile file {filePath}; |
154 |
154 |
155 if (file.open(QIODevice::WriteOnly | QIODevice::Text)) |
155 if (file.open(QIODevice::WriteOnly | QIODevice::Text)) |
156 { |
156 { |
157 for (LDObject* obj : selectedObjects()) |
157 for (LDObject* obj : selectedObjects()) |
158 { |
158 { |