fix segfault if no database is available
This commit is contained in:
@@ -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()) {
|
||||
|
||||
Reference in New Issue
Block a user