diff options
Diffstat (limited to 'src/add_group_form.cpp')
-rw-r--r-- | src/add_group_form.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/add_group_form.cpp b/src/add_group_form.cpp index 75ecd29..b20713d 100644 --- a/src/add_group_form.cpp +++ b/src/add_group_form.cpp @@ -15,6 +15,7 @@ void AddGroupForm::accept() { QString column_text = ui.new_group_column->currentText(); QString link_text = ui.new_group_link->text(); QMessageBox error_message; + BackendDB database; int new_id; if(name_text.isEmpty()) { @@ -26,7 +27,7 @@ void AddGroupForm::accept() { return; } - new_id = BackendDB::insertGroup(Group(0, name_text, column_text, link_text)); + new_id = database.insertGroup(Group(0, name_text, column_text, link_text)); // TODO redraw the main window QDialog::accept(); |