Comment 19 for bug 1990196

Revision history for this message
Michael Mikowski (kfocus) wrote :

I've blocked moving to non-existent pages by trapping the exception and returning. Anyone see a problem with this? Testing on a VM shows the crash is averted.

In file /usr/lib/ubiquity/ubiquity/frontend/kde_ui.py:

1067 def on_next_clicked(self):
1068 """Callback to control the installation process between steps."""
1069 if not self.allowed_change_step or not self.allowed_go_forward:
1070 return
1071
1072 + # Ignore page where index does not exist.
1073 + try:
1074 + ui = self.pages[self.pagesindex].ui
1075 + except IndexError:
1076 + return
1077 -
1074 - ui = self.pages[self.pagesindex].ui
1078 self.allow_change_step(False)