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
This commit is contained in:
parent
4eaa43ac48
commit
6b6bfc7b31
@ -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("<HIDDEN>");
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user