mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-05-19 12:08:23 -05:00
Fix editing of tables without rowid
This fixes some severe bugs in the Browse Data tab with editing and
deleting rows in WITHOUT ROWID tables.
These were introduced in 02db68107a.
See issue #2582.
This commit is contained in:
@@ -934,6 +934,9 @@ bool SqliteTableModel::dropMimeData(const QMimeData* data, Qt::DropAction, int r
|
||||
|
||||
void SqliteTableModel::setPseudoPk(std::vector<std::string> pseudoPk)
|
||||
{
|
||||
if(!m_table_of_query->isView())
|
||||
return;
|
||||
|
||||
if(pseudoPk.empty())
|
||||
pseudoPk.emplace_back("_rowid_");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user