Skip to content

Commit 6908762

Browse files
authored
Keep the original unicode normalization form (#1190)
IB-7730 Signed-off-by: Raul Metsma <[email protected]>
1 parent b9d99c1 commit 6908762

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

client/MainWindow.cpp

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)