diff options
author | Xisco Fauli <anistenis@gmail.com> | 2011-06-30 16:30:35 +0200 |
---|---|---|
committer | Xisco Fauli <anistenis@gmail.com> | 2011-06-30 16:30:35 +0200 |
commit | 75ee1cbb27bcdf06107052a333a6f1a99e14d926 (patch) | |
tree | 2b92c655a48809793bdfe8c694810c5b5b4b42a5 /wizards/com | |
parent | f8fd18a9cafe0fdf79e155d3cfc141c78ccc0dbd (diff) |
Cancel button works now
Diffstat (limited to 'wizards/com')
-rw-r--r-- | wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py index cbd3b12085ce..6f1a22717ec5 100644 --- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py +++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py @@ -54,7 +54,7 @@ class LetterWizardDialogImpl(LetterWizardDialog): lw.startWizard(xLocMSF, None) def startWizard(self, xMSF, CurPropertyValue): - LetterWizardDialogImpl.running = True + self.running = True try: #Number of steps on WizardDialog self.nMaxStep = 6 @@ -120,16 +120,16 @@ class LetterWizardDialogImpl(LetterWizardDialog): self.executeDialogFromComponent(self.myLetterDoc.xFrame) self.removeTerminateListener() self.closeDocument() - LetterWizardDialogImpl.running = False + self.running = False except Exception, exception: self.removeTerminateListener() traceback.print_exc() - LetterWizardDialogImpl.running = False + self.running = False return def cancelWizard(self): - xDialog.endExecute() - LetterWizardDialogImpl.running = False + self.xUnoDialog.endExecute() + self.running = False def finishWizard(self): switchToStep(getCurrentStep(), getMaxStep()) @@ -195,7 +195,7 @@ class LetterWizardDialogImpl(LetterWizardDialog): traceback.print_exc() finally: xDialog.endExecute() - LetterWizardDialogImpl.running = False + self.running = False return True; |