Crash on tab closing #245

Closed
hsoft opened this Issue Jun 22, 2013 · 2 comments

Projects

None yet

1 participant

@hsoft
Owner
hsoft commented Jun 22, 2013

@@@
Application Name: moneyGuru
Version: 2.3.6

Traceback (most recent call last):
File "/usr/local/share/moneyguru/qt/controller/main_window.py", line 384, in currentTabChanged
self.model.current_pane_index = index
File "/usr/local/share/moneyguru/core/gui/main_window.py", line 388, in current_pane_index
pane = self.panes[value]
IndexError: list index out of range
@@@

Then

@@@
Application Name: moneyGuru
Version: 2.3.6

Traceback (most recent call last):
File "/usr/local/share/moneyguru/qt/controller/main_window.py", line 337, in closeTabTriggered
self.model.close_pane(self.model.current_pane_index)
File "/usr/local/share/moneyguru/core/gui/main_window.py", line 201, in close_pane
newindex = self.panes.index(self._current_pane)
ValueError: list.index(x): x not in list
@@@

@hsoft hsoft closed this Jun 22, 2013
@hsoft
Owner
hsoft commented Jun 22, 2013

Oh well, that's an easy one: Under qt, it's possible to close the last tab. Cmon Virgil, that's weak...

@hsoft
Owner
hsoft commented Jun 22, 2013

(from [2b722abae380]) [#245 state:fixed] Fixed a crash under Qt when closing the last tab.
https://bitbucket.org/hsoft/moneyguru/changeset/2b722abae380/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment