summaryrefslogtreecommitdiff
path: root/ucb
diff options
context:
space:
mode:
Diffstat (limited to 'ucb')
-rw-r--r--ucb/source/ucp/gio/gio_mount.cxx9
1 files changed, 5 insertions, 4 deletions
diff --git a/ucb/source/ucp/gio/gio_mount.cxx b/ucb/source/ucp/gio/gio_mount.cxx
index dfbb9a0310e5..1d2dbcea8142 100644
--- a/ucb/source/ucp/gio/gio_mount.cxx
+++ b/ucb/source/ucp/gio/gio_mount.cxx
@@ -109,13 +109,14 @@ static void ooo_mount_operation_ask_password (GMountOperation *op,
OUString aDomain, aUserName, aPassword;
+ if (default_user)
+ aUserName = OUString(default_user, strlen(default_user), RTL_TEXTENCODING_UTF8);
+
ucbhelper::SimpleAuthenticationRequest::EntityType eUserName =
(flags & G_ASK_PASSWORD_NEED_USERNAME)
? ucbhelper::SimpleAuthenticationRequest::ENTITY_MODIFY
- : ucbhelper::SimpleAuthenticationRequest::ENTITY_NA;
-
- if (default_user)
- aUserName = OUString(default_user, strlen(default_user), RTL_TEXTENCODING_UTF8);
+ : aUserName.isEmpty() ? ucbhelper::SimpleAuthenticationRequest::ENTITY_NA
+ : ucbhelper::SimpleAuthenticationRequest::ENTITY_FIXED;
ucbhelper::SimpleAuthenticationRequest::EntityType ePassword =
(flags & G_ASK_PASSWORD_NEED_PASSWORD)