summaryrefslogtreecommitdiff
path: root/sd/source/ui/dlg/RemoteDialog.cxx
diff options
context:
space:
mode:
authorAndrzej J.R. Hunt <andrzej@ahunt.org>2012-08-13 21:39:12 +0200
committerAndrzej J.R. Hunt <andrzej@ahunt.org>2012-08-13 21:41:52 +0200
commit837a125ba6d31fb4cbc654e982884430464e8bba (patch)
tree2a7894d176dc79fee064460128316da4d28ba93a /sd/source/ui/dlg/RemoteDialog.cxx
parent4533d34d9acdd3779333334d1d560bf707267e04 (diff)
Final fixes for pairing.
Change-Id: Ib66f227062f9c263dbc3dfefaf70525c73bdedc9
Diffstat (limited to 'sd/source/ui/dlg/RemoteDialog.cxx')
-rw-r--r--sd/source/ui/dlg/RemoteDialog.cxx5
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/RemoteDialog.cxx b/sd/source/ui/dlg/RemoteDialog.cxx
index 0df0f7070547..d920d91c0527 100644
--- a/sd/source/ui/dlg/RemoteDialog.cxx
+++ b/sd/source/ui/dlg/RemoteDialog.cxx
@@ -50,9 +50,12 @@ IMPL_LINK_NOARG(RemoteDialog, HandleConnectButton)
if ( aSelected < 0 )
return 1;
TClientBoxEntry aEntry = mClientBox.GetEntryData(aSelected);
- OUString aPin = mClientBox.getPin();
+ OUString aPin ( mClientBox.getPin() );
if ( RemoteServer::connectClient( aEntry->m_pClientInfo, aPin ) )
+ {
+ Close();
return 0;
+ }
else
return 1;
}