From ddee95158867554825092b9c29d8278320b93c61 Mon Sep 17 00:00:00 2001 From: Louie S Date: Sat, 9 Mar 2024 18:28:02 -0500 Subject: Implemented remove group --- src/groupLayout.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'src/groupLayout.cpp') diff --git a/src/groupLayout.cpp b/src/groupLayout.cpp index 11dea2a..e99ddf6 100644 --- a/src/groupLayout.cpp +++ b/src/groupLayout.cpp @@ -5,6 +5,7 @@ #include #include "addEntryForm.h" +#include "backend/db_sqlite.h" #include "editGroupForm.h" #include "groupLayout.h" #include "lib.h" @@ -61,5 +62,7 @@ void GroupLayout::editGroup() { } void GroupLayout::removeGroup() { - qDebug() << "WIP"; + BackendDB database; + if(database.removeGroup(this->group) > 0) + getMainWindow()->displayWidgets(); } -- cgit