From 6b6bfc7b31cedc78107ee039e0c636c362184afb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Revol?= Date: Sat, 11 Oct 2008 08:24:39 +0000 Subject: [PATCH] Got rid of the ugly non-working hack to hide the password and use BTextView::HideTyping() instead. Seems the BeOS one removes the text on call !? git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@27967 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/codycam/CodyCam.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/apps/codycam/CodyCam.cpp b/src/apps/codycam/CodyCam.cpp index 36e2be6f4d..a0595c1d0a 100644 --- a/src/apps/codycam/CodyCam.cpp +++ b/src/apps/codycam/CodyCam.cpp @@ -619,10 +619,6 @@ VideoWindow::MessageReceived(BMessage* message) if (control != NULL) { strncpy(fFtpInfo.passwordText, ((BTextControl*)control)->Text(), 64); FTPINFO("password = '%s'\n", fFtpInfo.passwordText); - if (Lock()) { - ((BTextControl*)control)->SetText(""); - Unlock(); - } } break; @@ -785,6 +781,9 @@ VideoWindow::_BuildCaptureControls(BView* theView) fPasswordSetting->Value(), new BMessage(msg_password)); fPassword->SetTarget(this); fPassword->SetDivider(fPassword->Divider() - 30); + fPassword->TextView()->HideTyping(true); + // BeOS HideTyping() seems broken, it empties the text + fPassword->SetText(fPasswordSetting->Value()); fFtpSetupBox->AddChild(fPassword); aFrame.top = aFrame.bottom + kYBuffer;