Skip to content

Commit

Permalink
Keep the original unicode normalization form (open-eid#1190)
Browse files Browse the repository at this point in the history
IB-7730

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored Jul 11, 2023
1 parent b9d99c1 commit 6908762
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions client/MainWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -767,7 +767,7 @@ bool MainWindow::save(bool saveAs)
if(!digiDoc)
return false;

QString target = digiDoc->fileName().normalized(QString::NormalizationForm_C);
QString target = digiDoc->fileName();
if(saveAs)
target = selectFile(tr("Save file"), target, true);
if(target.isEmpty())
Expand All @@ -778,8 +778,7 @@ bool MainWindow::save(bool saveAs)
auto *dlg = new WarningDialog(tr("Cannot alter container %1. Save different location?").arg(target), this);
dlg->addButton(tr("YES").toUpper(), QMessageBox::Yes);
if(dlg->exec() == QMessageBox::Yes) {
QString file = selectFile(tr("Save file"), target, true);
if(!file.isEmpty())
if(QString file = selectFile(tr("Save file"), target, true); !file.isEmpty())
return saveAs ? digiDoc->saveAs(file) : digiDoc->save(file);
}
}
Expand Down

0 comments on commit 6908762

Please sign in to comment.