diff --git a/src/MainWindow.cpp b/src/MainWindow.cpp index 959a550c1..0910387d9 100644 --- a/src/MainWindow.cpp +++ b/src/MainWindow.cpp @@ -428,7 +428,7 @@ void MainWindow::populateTable() } else { QVector v; bool only_defaults = true; - const sqlb::FieldVector& tablefields = db.getObjectByName(tablename).dynamicCast()->fields(); + const sqlb::FieldInfoList& tablefields = db.getObjectByName(tablename)->fieldInformation(); for(int i=0; iname())); + v.push_back(sqlb::escapeIdentifier(tablefields.at(i).name)); } } if(only_defaults)