434 combo = widgets[historiesIndex] |
434 combo = widgets[historiesIndex] |
435 if combo: |
435 if combo: |
436 history = [combo.itemText(idx) for idx in range(combo.count())] |
436 history = [combo.itemText(idx) for idx in range(combo.count())] |
437 |
437 |
438 if history: |
438 if history: |
439 dlg = StartHistoryEditDialog(history, self) |
439 dlg = StartHistoryEditDialog(history, parent=self) |
440 if dlg.exec() == QDialog.DialogCode.Accepted: |
440 if dlg.exec() == QDialog.DialogCode.Accepted: |
441 history = dlg.getHistory() |
441 history = dlg.getHistory() |
442 combo = widgets[historiesIndex] |
442 combo = widgets[historiesIndex] |
443 if combo: |
443 if combo: |
444 combo.clear() |
444 combo.clear() |
445 combo.addItems(history) |
445 combo.addItems(history) |
446 |
446 |
447 self.__historiesModified = True |
447 self.__historiesModified = True |
448 |
448 |
449 def historiesModified(self): |
449 def historiesModified(self): |
450 """ |
450 """ |
451 Public method to test for modified histories. |
451 Public method to test for modified histories. |
452 |
452 |