diff options
author | Xisco Fauli <anistenis@gmail.com> | 2012-10-21 21:23:10 +0200 |
---|---|---|
committer | xisco <xisco@xisco-laptop.(none)> | 2012-10-23 01:13:17 +0200 |
commit | c06ee4c3d0b85b3452dfe7c5a46ea85799f54609 (patch) | |
tree | 6a6493651d3e774983805d43a383b4054f565d04 /wizards | |
parent | pyfax: Fix avoid to load the same template when it's already selected (diff) | |
download | core-c06ee4c3d0b85b3452dfe7c5a46ea85799f54609.tar.gz core-c06ee4c3d0b85b3452dfe7c5a46ea85799f54609.zip |
pyletter: Fix avoid to load the same template when it's already selected
Change-Id: Ia52beb31dfd30dc1e4d914a41e858e3258b7629b
Diffstat (limited to 'wizards')
-rw-r--r-- | wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py index bf171c62c9ee..a7dc1a49e6bd 100644 --- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py +++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py @@ -378,7 +378,7 @@ class LetterWizardDialogImpl(LetterWizardDialog): def lstBusinessStyleItemChanged(self): selectedItemPos = self.lstBusinessStyle.SelectedItemPos - if LetterWizardDialogImpl.lstBusinessStylePos is not selectedItemPos: + if LetterWizardDialogImpl.lstBusinessStylePos != selectedItemPos: LetterWizardDialogImpl.lstBusinessStylePos = selectedItemPos TextDocument.xTextDocument = \ self.myLetterDoc.loadAsPreview( @@ -391,7 +391,7 @@ class LetterWizardDialogImpl(LetterWizardDialog): def lstPrivOfficialStyleItemChanged(self): selectedItemPos = self.lstPrivOfficialStyle.SelectedItemPos - if LetterWizardDialogImpl.lstPrivOfficialStylePos is not selectedItemPos: + if LetterWizardDialogImpl.lstPrivOfficialStylePos != selectedItemPos: LetterWizardDialogImpl.lstPrivOfficialStylePos = selectedItemPos TextDocument.xTextDocument = \ self.myLetterDoc.loadAsPreview( @@ -404,7 +404,7 @@ class LetterWizardDialogImpl(LetterWizardDialog): def lstPrivateStyleItemChanged(self): selectedItemPos = self.lstPrivateStyle.SelectedItemPos - if LetterWizardDialogImpl.lstPrivateStylePos is not selectedItemPos: + if LetterWizardDialogImpl.lstPrivateStylePos != selectedItemPos: LetterWizardDialogImpl.lstPrivateStylePos = selectedItemPos TextDocument.xTextDocument = \ self.myLetterDoc.loadAsPreview( |