Data in crud table wasn't shown as it was supposed to.
This commit is contained in:
parent
2ba68d4edc
commit
c51bd7594d
1 changed files with 1 additions and 7 deletions
|
|
@ -129,10 +129,7 @@ QVariant CrudModel::data(const QModelIndex &index, int role) const
|
|||
if (value) {
|
||||
Oid o = m_roData->type(index.column());
|
||||
if (o == Pgsql::bool_oid) {
|
||||
if (value)
|
||||
v = *value == "t"; //s = (s == "t") ? "TRUE" : "FALSE";
|
||||
else
|
||||
v = "null";
|
||||
}
|
||||
else {
|
||||
QString s = QString::fromUtf8(value->c_str());
|
||||
|
|
@ -142,9 +139,6 @@ QVariant CrudModel::data(const QModelIndex &index, int role) const
|
|||
v = s;
|
||||
}
|
||||
}
|
||||
else {
|
||||
v = "null";
|
||||
}
|
||||
}
|
||||
else if (role == Qt::UserRole) {
|
||||
v = getType(index.column());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue