Ignore:
Timestamp:
Feb 28, 2011, 7:42:20 PM (13 years ago)
Author:
mlg
Message:

Modifications to use the last version of jiwigo-ws-api which manages proxy errors.

Location:
extensions/jiwigo/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • extensions/jiwigo/trunk

    • Property svn:ignore
      •  

        old new  
        11bin
        22target
         3temp.xml
  • extensions/jiwigo/trunk/src/main/java/fr/mael/jiwigo/ui/ConnexionDialog.java

    r9393 r9431  
    260260                        JOptionPane.ERROR_MESSAGE);
    261261            } else {
    262                 if (!Main.sessionManager.processLogin()) {
     262                int response = Main.sessionManager.processLogin();
     263                if (response == 0) {
     264                    Main.showFrame();
     265                    //hides the dialog
     266                    this.dispose();
     267                } else if (response == 1) {
    263268                    //if the login fails, an error is displayed
    264269                    if (!Main.sessionManager.isProxyError()) {
     
    266271                                Messages.getMessage("error"), JOptionPane.ERROR_MESSAGE);
    267272                    }
    268                 } else {
    269                     //          Locale.setDefault((Locale) comboLocales.getSelectedItem());
    270                     Main.showFrame();
    271                     //hides the dialog
    272                     this.dispose();
     273                } else if (response == 2) {
     274                    JOptionPane.showMessageDialog(null, Messages.getMessage("connexionDialog_proxyAuthError"), Messages
     275                            .getMessage("error"), JOptionPane.ERROR_MESSAGE);
    273276                }
    274277            }
Note: See TracChangeset for help on using the changeset viewer.