mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-04-03 04:27:39 +03:00
Complete code and test sat
This commit is contained in:
parent
910655d356
commit
06f9ab6775
2 changed files with 6 additions and 0 deletions
|
@ -320,6 +320,9 @@ namespace KeeShareSettings
|
||||||
writer.writeStartElement("Password");
|
writer.writeStartElement("Password");
|
||||||
writer.writeCharacters(reference.password.toUtf8().toBase64());
|
writer.writeCharacters(reference.password.toUtf8().toBase64());
|
||||||
writer.writeEndElement();
|
writer.writeEndElement();
|
||||||
|
writer.writeStartElement("Recurse");
|
||||||
|
writer.writeCharacters(reference.recurse ? "True" : "False");
|
||||||
|
writer.writeEndElement();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -346,6 +349,8 @@ namespace KeeShareSettings
|
||||||
reference.path = QString::fromUtf8(QByteArray::fromBase64(reader.readElementText().toLatin1()));
|
reference.path = QString::fromUtf8(QByteArray::fromBase64(reader.readElementText().toLatin1()));
|
||||||
} else if (reader.name() == "Password") {
|
} else if (reader.name() == "Password") {
|
||||||
reference.password = QString::fromUtf8(QByteArray::fromBase64(reader.readElementText().toLatin1()));
|
reference.password = QString::fromUtf8(QByteArray::fromBase64(reader.readElementText().toLatin1()));
|
||||||
|
} else if (reader.name() == "Recurse") {
|
||||||
|
reference.recurse = reader.readElementText().compare("True") == 0;
|
||||||
} else {
|
} else {
|
||||||
qWarning("Unknown Reference element %s", qPrintable(reader.name().toString()));
|
qWarning("Unknown Reference element %s", qPrintable(reader.name().toString()));
|
||||||
reader.skipCurrentElement();
|
reader.skipCurrentElement();
|
||||||
|
|
|
@ -190,6 +190,7 @@ void EditGroupWidgetKeeShare::update()
|
||||||
m_ui->typeComboBox->setCurrentIndex(reference.type);
|
m_ui->typeComboBox->setCurrentIndex(reference.type);
|
||||||
m_ui->passwordEdit->setText(reference.password);
|
m_ui->passwordEdit->setText(reference.password);
|
||||||
m_ui->pathEdit->setText(reference.path);
|
m_ui->pathEdit->setText(reference.path);
|
||||||
|
m_ui->recurseIntoGroupsCheckbox->setChecked(reference.recurse);
|
||||||
}
|
}
|
||||||
|
|
||||||
updateSharingState();
|
updateSharingState();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue