From a17737ef45af66b1f86759c02005c28d5585d534 Mon Sep 17 00:00:00 2001 From: Andrzej Hunt Date: Fri, 27 Jun 2014 17:53:02 +0200 Subject: Remote Dialog: make sure pin box is empty. The only way to do this seems to be setting an empty string -- using clear, or setting 0, results in a 0 being shown, which is rather ugly and unintuitive. Change-Id: Ic641c4fcecd634b7fff397989ee0b079239ea44c --- sd/source/ui/dlg/RemoteDialogClientBox.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sd/source/ui/dlg/RemoteDialogClientBox.cxx') diff --git a/sd/source/ui/dlg/RemoteDialogClientBox.cxx b/sd/source/ui/dlg/RemoteDialogClientBox.cxx index 47769d27a76d..69c0b0c06a1a 100644 --- a/sd/source/ui/dlg/RemoteDialogClientBox.cxx +++ b/sd/source/ui/dlg/RemoteDialogClientBox.cxx @@ -251,6 +251,9 @@ void ClientBox::selectEntry( const long nPos ) Invalidate(); } + // We empty the pin box now too, just in case the user previously + // entered a pin, but then changed their selected device. + m_aPinBox.SetText( "" ); guard.clear(); } @@ -333,7 +336,6 @@ void ClientBox::DrawRow( const Rectangle& rRect, const TClientBoxEntry pEntry ) aBtnPos = Point( aRect.Left() + GetTextWidth( sPinText ), aRect.Bottom() - TOP_OFFSET - aBtnSize.Height() ); - } m_aPinBox.SetPosPixel( aBtnPos ); m_aPinBox.Show( !bAlreadyAuthorised ); -- cgit