mirror of
https://github.com/sqlitebrowser/sqlitebrowser.git
synced 2026-01-19 18:40:13 -06:00
Fix crash when opening project file
When opening a project file the following exception is raised in
src/sqlitedb.h:208
terminate called after throwing an instance of 'std::out_of_range'
what(): map::at
This is related to 64a596a887
This commit is contained in:
@@ -3589,6 +3589,9 @@ void MainWindow::unlockViewEditing(bool unlock, QString pk)
|
||||
{
|
||||
sqlb::ObjectIdentifier currentTable = currentlyBrowsedTableName();
|
||||
|
||||
if(currentTable.isEmpty())
|
||||
return;
|
||||
|
||||
// If this isn't a view just unlock editing and return
|
||||
if(db.getObjectByName(currentTable) && db.getObjectByName(currentTable)->type() != sqlb::Object::View)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user