summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2011-06-30 16:30:35 +0200
committerXisco Fauli <anistenis@gmail.com>2011-06-30 16:30:35 +0200
commitef1f718736649734fe48cf7c25c0cd8369e14ad5 (patch)
tree6778c20506414d3030cc6e01afd115490b0919a1 /wizards
parent289f9ed24f1efd398f6ae4f2a82fbd1f5f5005a3 (diff)
Cancel button works now
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py12
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 cbd3b1208..6f1a22717 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;