summaryrefslogtreecommitdiffstats
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
commit75ee1cbb27bcdf06107052a333a6f1a99e14d926 (patch)
tree2b92c655a48809793bdfe8c694810c5b5b4b42a5 /wizards
parentFirst attempt to create the letter wizard (diff)
downloadcore-75ee1cbb27bcdf06107052a333a6f1a99e14d926.tar.gz
core-75ee1cbb27bcdf06107052a333a6f1a99e14d926.zip
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 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;