fix segfault if no database is available

This commit is contained in:
2018-12-01 14:47:30 +01:00
parent adbdc93315
commit 388084c40e
2 changed files with 24 additions and 11 deletions

View File

@@ -50,7 +50,6 @@ vector<vector<QString>> DataBase::getData(std::string statement, int cols) {
bool ok = this->db->open();
QString qstr;
if (ok) {
std::cout << "alles ok bis hier" << std::endl;
QSqlQuery query(buffer);
while (query.next()) {