mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-24 21:10:10 -06:00
Fix crash when Tab is pressed at the last cell of a view's grid (#1289)
The crash is avoided if the table model is not editable, since insertRows checks that. A table model for a DB view should be not editable, so this fix avoids the crash and possibly other possible misbehaviours.
This commit is contained in:
@@ -64,7 +64,7 @@ public:
|
||||
|
||||
// This returns true if the model is set up for editing. The model is able to operate in more or less two different modes, table browsing
|
||||
// and query browsing. We only support editing data for the table browsing mode and not for the query mode. This function returns true if
|
||||
// the model is currently editable, i.e. it's running in table mode.
|
||||
// the model is currently editable, i.e. it's running in table mode and it isn't a view.
|
||||
bool isEditable() const;
|
||||
|
||||
// Helper function for removing all comments from a SQL query
|
||||
|
||||
Reference in New Issue
Block a user