Fix for allowing cancel to work

svn: r9519
This commit is contained in:
Doug Blank 2007-12-16 15:28:33 +00:00
parent 3e9e629f56
commit 0ff1e21c46

View File

@ -125,8 +125,8 @@ class GtkProgressDialog(gtk.Dialog):
@param pbar_idx: the index as returned from L{add}
@type pbar_idx: int
"""
self._progress_bars[pbar_idx].step()
if pbar_idx < len(self._progress_bars):
self._progress_bars[pbar_idx].step()
self._process_events()
def _process_events(self):