Fix floating point detection for 64bit values

I forgot to add this file in 7d85d7a41b.
This commit is contained in:
Martin Kleusberg
2019-08-05 13:40:50 +02:00
parent 9327d512a9
commit 5221a66182

View File

@@ -486,7 +486,7 @@ bool SqliteTableModel::setTypedData(const QModelIndex& index, bool isBlob, const
type = SQLITE_INTEGER;
} else if(m_vDataTypes.at(column) == SQLITE_FLOAT) {
bool ok;
newValue.toFloat(&ok);
newValue.toDouble(&ok);
if(ok)
type = SQLITE_FLOAT;
}