diff options
author | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-06-27 17:53:02 +0200 |
---|---|---|
committer | Andrzej Hunt <andrzej.hunt@collabora.com> | 2014-06-30 07:45:22 +0200 |
commit | a17737ef45af66b1f86759c02005c28d5585d534 (patch) | |
tree | bd03db22a1f96e5c60b07d5df872402e3f4dff9d | |
parent | 3c5223b232992b7c49c4827d69bc54366c7a3f48 (diff) |
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
-rw-r--r-- | sd/source/ui/dlg/RemoteDialogClientBox.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
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 ); |