Commit 63bad40
authored
Root cause: updateWindowTitleAndFileState() used tab.tableName as the
window title for ALL tab types. After executing SELECT * FROM users,
tableName="users" was set (correct for edit support), but the window
title also became "users" instead of "Query 1".
This caused sidebar "open table" to match the query tab's window by
title, switching to it instead of opening a new table tab.
Fix: only use tableName as window title for .table tabs. For .query
tabs, use tab.title (the stable display name like "Query 1").
1 parent d1b8842 commit 63bad40
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
161 | 161 | | |
162 | 162 | | |
163 | 163 | | |
164 | | - | |
| 164 | + | |
| 165 | + | |
165 | 166 | | |
166 | 167 | | |
167 | 168 | | |
| |||
0 commit comments