mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-20 19:11:39 -06:00
Fix editing data after multi-threaded loading
This commit is contained in:
@@ -363,9 +363,11 @@ bool SqliteTableModel::setTypedData(const QModelIndex& index, bool isBlob, const
|
||||
if(index.row() < m_data.size())
|
||||
m_data[index.row()].replace(index.column(), newValue);
|
||||
|
||||
lock.unlock();
|
||||
emit(dataChanged(index, index));
|
||||
return true;
|
||||
} else {
|
||||
lock.unlock();
|
||||
QMessageBox::warning(0, qApp->applicationName(), tr("Error changing data:\n%1").arg(m_db.lastError()));
|
||||
return false;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user