diff options
author | Xisco Fauli <anistenis@gmail.com> | 2012-10-21 21:19:19 +0200 |
---|---|---|
committer | xisco <xisco@xisco-laptop.(none)> | 2012-10-23 01:13:16 +0200 |
commit | b8c3e47fd4dece8daf6b7aa016e3f3098827e897 (patch) | |
tree | 4935f01fd1068e7568460507b52f9be154c5e540 /wizards | |
parent | pyletter: missed import (diff) | |
download | core-b8c3e47fd4dece8daf6b7aa016e3f3098827e897.tar.gz core-b8c3e47fd4dece8daf6b7aa016e3f3098827e897.zip |
pyfax: Fix avoid to load the same template when it's already selected
Change-Id: If757247b527b92e5fed9b34d5608c37fe2d6fe04
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py index 3c82a5681473..04767c90e513 100644 --- a/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py +++ b/wizards/com/sun/star/wizards/fax/FaxWizardDialogImpl.py @@ -449,7 +449,7 @@ class FaxWizardDialogImpl(FaxWizardDialog): def lstBusinessStyleItemChanged(self): selectedItemPos = self.lstBusinessStyle.SelectedItemPos #avoid to load the same item again - if FaxWizardDialogImpl.lstBusinessStylePos is not selectedItemPos: + if FaxWizardDialogImpl.lstBusinessStylePos != selectedItemPos: FaxWizardDialogImpl.lstBusinessStylePos = selectedItemPos TextDocument.xTextDocument = self.myFaxDoc.loadAsPreview( self.BusinessFiles.values()[selectedItemPos], False) @@ -474,7 +474,7 @@ class FaxWizardDialogImpl(FaxWizardDialog): def lstPrivateStyleItemChanged(self): selectedItemPos = self.lstPrivateStyle.SelectedItemPos #avoid to load the same item again - if FaxWizardDialogImpl.lstPrivateStylePos is not selectedItemPos: + if FaxWizardDialogImpl.lstPrivateStylePos != selectedItemPos: FaxWizardDialogImpl.lstPrivateStylePos = selectedItemPos TextDocument.xTextDocument = self.myFaxDoc.loadAsPreview( self.PrivateFiles.values()[selectedItemPos], False) |