diff options
Diffstat (limited to 'src/assignmentList.cpp')
-rw-r--r-- | src/assignmentList.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/assignmentList.cpp b/src/assignmentList.cpp index 909b023..26af7ce 100644 --- a/src/assignmentList.cpp +++ b/src/assignmentList.cpp @@ -52,9 +52,6 @@ void AssignmentList::initializeUI() { // create toolbar ui.toolBar->addAction(ui.actionAdd_Group); - // setup database - BackendDB::init(); - this->displayDate(); this->displayWidgets(); this->show(); @@ -68,7 +65,8 @@ void AssignmentList::displayDate() { void AssignmentList::displayWidgets() { QVBoxLayout *column_left = new QVBoxLayout(); QVBoxLayout *column_right = new QVBoxLayout(); - QList<Group *> groups = BackendDB::loadGroups(); + BackendDB database; + QList<Group *> groups = database.loadGroups(); int i; // clear out old layouts if they exist |