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.
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.