mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-21 03:21:43 -06:00
sqlitetablemodel: Only return NULL text for display role and NULL fields
This commit is contained in:
@@ -231,7 +231,7 @@ QVariant SqliteTableModel::data(const QModelIndex &index, int role) const
|
||||
|
||||
if(role == Qt::DisplayRole && isBinary(index))
|
||||
return "BLOB";
|
||||
else if(m_data.at(index.row()).at(index.column()).isNull() || isBinary(index))
|
||||
else if(role == Qt::DisplayRole && m_data.at(index.row()).at(index.column()).isNull())
|
||||
return PreferencesDialog::getSettingsValue("databrowser", "null_text").toString();
|
||||
else
|
||||
return m_data.at(index.row()).at(index.column());
|
||||
|
||||
Reference in New Issue
Block a user