diff options
author | Mikhail Voitenko <mav@openoffice.org> | 2008-02-10 14:56:36 +0000 |
---|---|---|
committer | Mikhail Voitenko <mav@openoffice.org> | 2008-02-10 14:56:36 +0000 |
commit | 97112b0ee3445deb19adf87c7cf482360733bd37 (patch) | |
tree | 68395f6d6807c93a37ab2ef3ba14c3bb395a6fad /swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java | |
parent | dd41994364df5aa3ffcc97081bb1ccf51b869763 (diff) |
Let the dialogs stay open in case of error
Diffstat (limited to 'swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java')
-rw-r--r-- | swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java b/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java index 8197cd18abc4..de6b8d540987 100644 --- a/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java +++ b/swext/mediawiki/src/com/sun/star/wiki/WikiArticle.java @@ -4,9 +4,9 @@ * * $RCSfile: WikiArticle.java,v $ * - * $Revision: 1.5 $ + * $Revision: 1.6 $ * - * last change: $Author: mav $ $Date: 2008-02-04 08:52:18 $ + * last change: $Author: mav $ $Date: 2008-02-10 15:56:36 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -100,34 +100,34 @@ public class WikiArticle } } - while( bLogin && !bGotLogin && !Login() ) + if ( bLogin && !bGotLogin ) { - WikiEditSettingDialog aDialog = null; + WikiEditSettingDialog aDialog = new WikiEditSettingDialog(m_xContext, "vnd.sun.star.script:WikiEditor.EditSetting?location=application", wikiSettings, false ); try { - aDialog = new WikiEditSettingDialog(m_xContext, "vnd.sun.star.script:WikiEditor.EditSetting?location=application", wikiSettings, false ); - - if ( aPropDialog != null ) - aPropDialog.SetThrobberActive( false ); - - if ( MainThreadDialogExecutor.Show( xContext, aDialog ) ) + while( !Login() ) { - m_sWikiUser = (String) wikiSettings.get("Username"); - m_sWikiPass = (String) wikiSettings.get("Password"); - } - else - throw new WikiCancelException(); + if ( aPropDialog != null ) + aPropDialog.SetThrobberActive( false ); - if ( aPropDialog != null ) - { - aPropDialog.SetThrobberActive( true ); - Thread.yield(); + if ( MainThreadDialogExecutor.Show( xContext, aDialog ) ) + { + m_sWikiUser = (String) wikiSettings.get("Username"); + m_sWikiPass = (String) wikiSettings.get("Password"); + } + else + throw new WikiCancelException(); + + if ( aPropDialog != null ) + { + aPropDialog.SetThrobberActive( true ); + Thread.yield(); + } } } finally { - if ( aDialog != null ) - aDialog.DisposeDialog(); + aDialog.DisposeDialog(); } } |