Commit 6584883
authored
Fix UnboundLocalError when clicking twice in tabs bar
Clicking twice in a blank space in tabs bar raises an exception trying to show the "Changing Tab label" dialog:
```
Exception in Tkinter callback
Traceback (most recent call last):
File "C:\runtimes\Anaconda3_64\Lib\tkinter\__init__.py", line 1705, in __call__
return self.func(*args)
File "p:/repos/sqlitebro/sqlitebro.py", line 473, in btn_presstwice
actions = [widget, index]
UnboundLocalError: local variable 'index' referenced before assignment
```
Fixed as was only to be expected: with one tab :D1 parent ba769fe commit 6584883
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
468 | 468 | | |
469 | 469 | | |
470 | 470 | | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
477 | 477 | | |
478 | 478 | | |
479 | 479 | | |
| |||
0 commit comments