Skip to content

Commit

Permalink
No need to open with ReadWrite (#1211)
Browse files Browse the repository at this point in the history
IB-7796

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma authored Jul 30, 2023
1 parent 3bf245b commit 6eabcf7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/CryptoDoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ bool CDocumentModel::addFile(const QString &file, const QString &mime)
}

auto data = std::make_unique<QFile>(file);
data->open(QFile::ReadWrite);
data->open(QFile::ReadOnly);
d->cdoc->files.push_back({
QFileInfo(file).fileName(),
QStringLiteral("D%1").arg(d->cdoc->files.size()),
Expand Down

0 comments on commit 6eabcf7

Please sign in to comment.