Commit b9908619 authored by Elvis Angelaccio's avatar Elvis Angelaccio

Assume that header encryption is disabled

This initialize ReadOnlyArchiveInterface::m_isHeaderEncryptionEnabled to false.

The boolean member ReadOnlyArchiveInterface::m_isHeaderEncryptionEnabled is
only set if the header encryption is explicitly enabled by the user. If not,
its default value is used to enable or disable the header encryption. Since
this variable was not initialized, the behavior was undefined when the checkbox
was not checked.

BUG: 351608
REVIEW: 125372
FIXED-IN: 15.08.2
parent 047792b0
......@@ -36,7 +36,9 @@
namespace Kerfuffle
{
ReadOnlyArchiveInterface::ReadOnlyArchiveInterface(QObject *parent, const QVariantList & args)
: QObject(parent), m_waitForFinishedSignal(false)
: QObject(parent),
m_waitForFinishedSignal(false),
m_isHeaderEncryptionEnabled(false)
{
qCDebug(KERFUFFLE) << "Created read-only interface for" << args.first().toString();
m_filename = args.first().toString();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment