Remove deprecated QSqlQuery usage

This commit is contained in:
2025-01-19 15:49:31 +01:00
parent 3cda53f26c
commit fc36024eee
3 changed files with 32 additions and 31 deletions
+1 -1
View File
@@ -375,7 +375,7 @@ bool DataBaseView::exportCSV(const QString &path)
if(!csv.open(QIODevice::WriteOnly | QIODevice::Text))
return false;
QSqlQuery sql = m_model->query();
QSqlQuery sql(m_model->query().lastQuery());
int colCount = m_model->columnCount();
QStringList header;
for(int i=0; i<colCount; i++)