diff -r adb9d32a1426 -r dcc8c02530c2 src/toolsets/filetoolset.cpp --- a/src/toolsets/filetoolset.cpp Tue Mar 20 12:25:52 2018 +0200 +++ b/src/toolsets/filetoolset.cpp Fri Mar 23 12:51:18 2018 +0200 @@ -93,14 +93,6 @@ (new ConfigDialog {m_window})->exec(); } -void FileToolset::setLDrawPath() -{ - LDrawPathDialog* dialog = new LDrawPathDialog {m_config->lDrawPath(), true}; - - if (dialog->exec()) - m_config->setLDrawPath (dialog->path()); -} - void FileToolset::exit() { ::exit(EXIT_SUCCESS); @@ -155,10 +147,8 @@ { for (LDObject* obj : selectedObjects()) { - QString contents = obj->asText(); - QByteArray data = contents.toUtf8(); - file.write(data, countof(data)); - file.write("\r\n", 2); + file.write(obj->asText().toUtf8()); + file.write("\r\n"); } } else