summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2011-06-30 16:30:35 +0200
committerBjoern Michaelsen <bjoern.michaelsen@canonical.com>2011-08-18 02:13:22 +0200
commit85a798bd8a7b79025b1dd23eebc6b20992f6b690 (patch)
treebaf9933950a51a51448195f6e391ce8966203a1e /wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
parentdc85befb7a25a5a70a17c259b4d54a2f17f90123 (diff)
Cancel button works now
Diffstat (limited to 'wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py')
-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 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;