From 2e4227a8875dc9a25dd92d46d2f71eff7ae1499a Mon Sep 17 00:00:00 2001 From: Louie S Date: Tue, 12 Mar 2024 18:49:47 -0400 Subject: Implement removeEntry --- src/entryLayout.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/entryLayout.cpp') diff --git a/src/entryLayout.cpp b/src/entryLayout.cpp index eff8f1e..48b2888 100644 --- a/src/entryLayout.cpp +++ b/src/entryLayout.cpp @@ -135,5 +135,8 @@ void EntryLayout::toggleDone() { } void EntryLayout::removeEntry() { - qDebug() << "WIP"; + BackendDB database; + + if(database.removeEntry(this->entry) > 0) + getMainWindow()->displayWidgets(); } -- cgit