ctjacobs / pyqso

PyQSO is a contact logging tool for amateur radio operators.
http://christianjacobs.uk/pyqso
GNU General Public License v3.0
79 stars 19 forks source link

Corrected log deletion bug. #70

Closed WB5VQX closed 5 years ago

WB5VQX commented 5 years ago

This one line addition to logbook.py corrects a bug which occurs when you delete the last log in the logbook (the log on the tab furthest to the right). The original code without the addition causes the notebook widget to disappear from the window necessitating the user to close the logbook and re-open it. By making the previous page the currently selected page before the remove_page() call, this bug does not occur. Another option might to be to automatically select page 0 (the summary page) instead of the what will become the new last page in the notebook.

ctjacobs commented 5 years ago

Looks good to me. I'll merge this into the master branch. Thanks!