diff options
author | Louie S <louie@example.com> | 2024-03-09 18:28:02 -0500 |
---|---|---|
committer | Louie S <louie@example.com> | 2024-03-09 18:28:02 -0500 |
commit | ddee95158867554825092b9c29d8278320b93c61 (patch) | |
tree | 9523c6ef4879017286360ba9efc9ce97056d3ba9 /src/groupLayout.cpp | |
parent | 848cdae813648f0a2c39942dc01d8f991787b338 (diff) |
Implemented remove group
Diffstat (limited to 'src/groupLayout.cpp')
-rw-r--r-- | src/groupLayout.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
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 <QDebug> #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(); } |