[Libreoffice-commits] core.git: Branch 'feature/gsoc15-open-remote-files-dialog' - include/svtools svtools/source ucb/source

Szymon Kłos eszkadev at gmail.com
Fri Jun 26 10:26:33 PDT 2015


 include/svtools/ServerDetailsControls.hxx        |    1 +
 svtools/source/dialogs/ServerDetailsControls.cxx |    4 ++++
 ucb/source/ucp/cmis/cmis_repo_content.cxx        |    1 +
 3 files changed, 6 insertions(+)

New commits:
commit f7f79041f4cf652212834c58eb171d83751af487
Author: Szymon Kłos <eszkadev at gmail.com>
Date:   Fri Jun 26 17:54:11 2015 +0200

    PlaceEditDialog: temporary error box (showing when auth failed)
    
    Change-Id: I614c62df60e4da4f6bb36438cbd3360484cd518c

diff --git a/include/svtools/ServerDetailsControls.hxx b/include/svtools/ServerDetailsControls.hxx
index e56f3e7..29c951a 100644
--- a/include/svtools/ServerDetailsControls.hxx
+++ b/include/svtools/ServerDetailsControls.hxx
@@ -20,6 +20,7 @@
 #include <vcl/field.hxx>
 #include <vcl/fixed.hxx>
 #include <vcl/layout.hxx>
+#include <vcl/msgbox.hxx>
 
 class DetailsContainer
 {
diff --git a/svtools/source/dialogs/ServerDetailsControls.cxx b/svtools/source/dialogs/ServerDetailsControls.cxx
index c30b53b..08460cb 100644
--- a/svtools/source/dialogs/ServerDetailsControls.cxx
+++ b/svtools/source/dialogs/ServerDetailsControls.cxx
@@ -411,6 +411,10 @@ IMPL_LINK_NOARG( CmisDetailsContainer, RefreshReposHdl  )
     }
     catch ( const Exception& )
     {
+        ScopedVclPtrInstance< ErrorBox > pErrorBox( static_cast< vcl::Window* >( NULL ),
+                                                   WB_OK,
+                                                   "Auth failed!" );
+        pErrorBox->Execute( );
     }
 
     // Auto-select the first one
diff --git a/ucb/source/ucp/cmis/cmis_repo_content.cxx b/ucb/source/ucp/cmis/cmis_repo_content.cxx
index 86be92c..5128b70 100644
--- a/ucb/source/ucp/cmis/cmis_repo_content.cxx
+++ b/ucb/source/ucp/cmis/cmis_repo_content.cxx
@@ -202,6 +202,7 @@ namespace cmis
                 catch (const libcmis::Exception& e)
                 {
                     SAL_INFO( "ucb.ucp.cmis", "Error getting repositories: " << e.what() );
+                    throw uno::Exception( );
                 }
             }
             else


More information about the Libreoffice-commits mailing list