src/mainwindow.cpp

changeset 967
eb586d3e1a6a
parent 966
a834e43a57da
child 968
4b93b7963456
equal deleted inserted replaced
966:a834e43a57da 967:eb586d3e1a6a
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)"));

mercurial