diff options
-rw-r--r-- | src/entryLayout.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/entryLayout.cpp b/src/entryLayout.cpp index 3bf09e6..eff8f1e 100644 --- a/src/entryLayout.cpp +++ b/src/entryLayout.cpp @@ -3,6 +3,7 @@ #include <QDebug> +#include "backend/db_sqlite.h" #include "editEntryForm.h" #include "entryLayout.h" #include "lib.h" @@ -126,7 +127,11 @@ void EntryLayout::setRules() { } void EntryLayout::toggleDone() { - qDebug() << "WIP"; + BackendDB database; + + this->entry.done = !this->entry.done; + database.updateEntry(this->entry); + getMainWindow()->displayWidgets(); } void EntryLayout::removeEntry() { |