src/toolsets/filetoolset.cpp

changeset 1064
4c7a353cf583
parent 1063
1f15c52c11f6
child 1065
c8ecddbd99e9
equal deleted inserted replaced
1063:1f15c52c11f6 1064:4c7a353cf583
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 {

mercurial