mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-17 17:58:23 -05:00
sqlitetablemodel: fix assert on windows
This commit is contained in:
@@ -607,9 +607,12 @@ void SqliteTableModel::updateFilter(int column, const QString& value)
|
||||
|
||||
void SqliteTableModel::clearCache()
|
||||
{
|
||||
beginRemoveRows(QModelIndex(), 0, m_data.size()-1);
|
||||
m_data.clear();
|
||||
endRemoveRows();
|
||||
if(!m_data.empty())
|
||||
{
|
||||
beginRemoveRows(QModelIndex(), 0, m_data.size() - 1);
|
||||
m_data.clear();
|
||||
endRemoveRows();
|
||||
}
|
||||
}
|
||||
|
||||
bool SqliteTableModel::isBinary(const QModelIndex& index) const
|
||||
|
||||
Reference in New Issue
Block a user