770 { |
770 { |
771 QString name = doc->defaultName(); |
771 QString name = doc->defaultName(); |
772 |
772 |
773 if (not doc->fullPath().isEmpty()) |
773 if (not doc->fullPath().isEmpty()) |
774 name = doc->fullPath(); |
774 name = doc->fullPath(); |
775 elif (not doc->name().isEmpty()) |
775 else if (not doc->name().isEmpty()) |
776 name = doc->name(); |
776 name = doc->name(); |
777 |
777 |
778 name.replace ("\\", "/"); |
778 name.replace ("\\", "/"); |
779 path = QFileDialog::getSaveFileName (g_win, tr ("Save As"), |
779 path = QFileDialog::getSaveFileName (g_win, tr ("Save As"), |
780 name, tr ("LDraw files (*.dat *.ldr)")); |
780 name, tr ("LDraw files (*.dat *.ldr)")); |