File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -767,7 +767,7 @@ bool MainWindow::save(bool saveAs)
767767 if (!digiDoc)
768768 return false ;
769769
770- QString target = digiDoc->fileName (). normalized (QString::NormalizationForm_C) ;
770+ QString target = digiDoc->fileName ();
771771 if (saveAs)
772772 target = selectFile (tr (" Save file" ), target, true );
773773 if (target.isEmpty ())
@@ -778,8 +778,7 @@ bool MainWindow::save(bool saveAs)
778778 auto *dlg = new WarningDialog (tr (" Cannot alter container %1. Save different location?" ).arg (target), this );
779779 dlg->addButton (tr (" YES" ).toUpper (), QMessageBox::Yes);
780780 if (dlg->exec () == QMessageBox::Yes) {
781- QString file = selectFile (tr (" Save file" ), target, true );
782- if (!file.isEmpty ())
781+ if (QString file = selectFile (tr (" Save file" ), target, true ); !file.isEmpty ())
783782 return saveAs ? digiDoc->saveAs (file) : digiDoc->save (file);
784783 }
785784 }
You can’t perform that action at this time.
0 commit comments