summaryrefslogtreecommitdiff
path: root/wizards
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2012-11-13 19:33:54 +0100
committerXisco Fauli <anistenis@gmail.com>2012-11-13 23:17:06 +0100
commit82b061570a7578d9d3a9768a5b6392c388f40c6c (patch)
tree488ade8ffa327d6874645f516a32ac8d1fdf6a1d /wizards
parente1f742a601c1c1c0535d796e7a7705990a9da891 (diff)
pyagenda: Fix "the document already exists"
Change-Id: Ie91d4d2f50ef1f13759904d6eb862f2d7c2140e7
Diffstat (limited to 'wizards')
-rw-r--r--wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.py b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.py
index dd09c33a7377..aa5e523c82e6 100644
--- a/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.py
+++ b/wizards/com/sun/star/wizards/agenda/AgendaWizardDialogImpl.py
@@ -471,7 +471,11 @@ class AgendaWizardDialogImpl(AgendaWizardDialog):
def closeDocument(self):
try:
- xCloseable = self.agendaTemplate.xFrame
- xCloseable.close(False)
+ xCloseable = self.agendaTemplate.xFrame.close(False)
except CloseVetoException, e:
traceback.print_exc()
+
+ def validatePath(self):
+ if self.myPathSelection.usedPathPicker:
+ self.filenameChanged = True
+ self.myPathSelection.usedPathPicker = False