From 06f9ab6775e0a7251e344266f77dc75b8ca59286 Mon Sep 17 00:00:00 2001 From: Jonathan White Date: Fri, 27 Dec 2024 23:29:49 -0500 Subject: [PATCH] Complete code and test sat --- src/keeshare/KeeShareSettings.cpp | 5 +++++ src/keeshare/group/EditGroupWidgetKeeShare.cpp | 1 + 2 files changed, 6 insertions(+) diff --git a/src/keeshare/KeeShareSettings.cpp b/src/keeshare/KeeShareSettings.cpp index 4f53fc25f..268e4e9a0 100644 --- a/src/keeshare/KeeShareSettings.cpp +++ b/src/keeshare/KeeShareSettings.cpp @@ -320,6 +320,9 @@ namespace KeeShareSettings writer.writeStartElement("Password"); writer.writeCharacters(reference.password.toUtf8().toBase64()); 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())); } else if (reader.name() == "Password") { reference.password = QString::fromUtf8(QByteArray::fromBase64(reader.readElementText().toLatin1())); + } else if (reader.name() == "Recurse") { + reference.recurse = reader.readElementText().compare("True") == 0; } else { qWarning("Unknown Reference element %s", qPrintable(reader.name().toString())); reader.skipCurrentElement(); diff --git a/src/keeshare/group/EditGroupWidgetKeeShare.cpp b/src/keeshare/group/EditGroupWidgetKeeShare.cpp index 39da44e1f..0efd061bc 100644 --- a/src/keeshare/group/EditGroupWidgetKeeShare.cpp +++ b/src/keeshare/group/EditGroupWidgetKeeShare.cpp @@ -190,6 +190,7 @@ void EditGroupWidgetKeeShare::update() m_ui->typeComboBox->setCurrentIndex(reference.type); m_ui->passwordEdit->setText(reference.password); m_ui->pathEdit->setText(reference.path); + m_ui->recurseIntoGroupsCheckbox->setChecked(reference.recurse); } updateSharingState();