mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 19:11:39 -06:00
sqlitetablemodel: return back 'cheap BLOB test' for data DisplayRole
This commit is contained in:
@@ -244,7 +244,7 @@ QVariant SqliteTableModel::data(const QModelIndex &index, int role) const
|
||||
while(index.row() >= m_data.size() && canFetchMore())
|
||||
const_cast<SqliteTableModel*>(this)->fetchMore(); // Nothing evil to see here, move along
|
||||
|
||||
if(role == Qt::DisplayRole && isBinary(index))
|
||||
if(role == Qt::DisplayRole && m_data.at(index.row()).at(index.column()).left(1024).contains('\0'))
|
||||
return "BLOB";
|
||||
else if(role == Qt::DisplayRole && m_data.at(index.row()).at(index.column()).isNull())
|
||||
return PreferencesDialog::getSettingsValue("databrowser", "null_text").toString();
|
||||
|
||||
Reference in New Issue
Block a user