summaryrefslogtreecommitdiff
path: root/src/groupLayout.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/groupLayout.cpp')
-rw-r--r--src/groupLayout.cpp5
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();
}