FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

sqlitetablemodel: return back 'cheap BLOB test' for data DisplayRole · sqlitebrowser/sqlitebrowser@517ecec · GitHub

Commit 517ecec

Browse files
committed
sqlitetablemodel: return back 'cheap BLOB test' for data DisplayRole
1 parent 7e3d9cd commit 517ecec

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎src/sqlitetablemodel.cpp‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ QVariant SqliteTableModel::data(const QModelIndex &index, int role) const
244244
while(index.row() >= m_data.size() && canFetchMore())
245245
const_cast<SqliteTableModel*>(this)->fetchMore(); // Nothing evil to see here, move along
246246

247-
if(role == Qt::DisplayRole && isBinary(index))
247+
if(role == Qt::DisplayRole && m_data.at(index.row()).at(index.column()).left(1024).contains('\0'))
248248
return "BLOB";
249249
else if(role == Qt::DisplayRole && m_data.at(index.row()).at(index.column()).isNull())
250250
return PreferencesDialog::getSettingsValue("databrowser", "null_text").toString();

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL