diff --git a/src/sqlitetablemodel.cpp b/src/sqlitetablemodel.cpp index 1dfaad4c..be77b755 100644 --- a/src/sqlitetablemodel.cpp +++ b/src/sqlitetablemodel.cpp @@ -220,10 +220,10 @@ QVariant SqliteTableModel::data(const QModelIndex &index, int role) const while(index.row() >= m_data.size() && canFetchMore()) const_cast(this)->fetchMore(); // Nothing evil to see here, move along - 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()) + if(role == Qt::DisplayRole && m_data.at(index.row()).at(index.column()).isNull()) return PreferencesDialog::getSettingsValue("databrowser", "null_text").toString(); + else if(role == Qt::DisplayRole && isBinary(index)) + return "BLOB"; else return decode(m_data.at(index.row()).at(index.column())); } else if(role == Qt::FontRole) {