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:
@@ -619,10 +619,6 @@ VideoWindow::MessageReceived(BMessage* message)
|
|||||||
if (control != NULL) {
|
if (control != NULL) {
|
||||||
strncpy(fFtpInfo.passwordText, ((BTextControl*)control)->Text(), 64);
|
strncpy(fFtpInfo.passwordText, ((BTextControl*)control)->Text(), 64);
|
||||||
FTPINFO("password = '%s'\n", fFtpInfo.passwordText);
|
FTPINFO("password = '%s'\n", fFtpInfo.passwordText);
|
||||||
if (Lock()) {
|
|
||||||
((BTextControl*)control)->SetText("<HIDDEN>");
|
|
||||||
Unlock();
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
@@ -785,6 +781,9 @@ VideoWindow::_BuildCaptureControls(BView* theView)
|
|||||||
fPasswordSetting->Value(), new BMessage(msg_password));
|
fPasswordSetting->Value(), new BMessage(msg_password));
|
||||||
fPassword->SetTarget(this);
|
fPassword->SetTarget(this);
|
||||||
fPassword->SetDivider(fPassword->Divider() - 30);
|
fPassword->SetDivider(fPassword->Divider() - 30);
|
||||||
|
fPassword->TextView()->HideTyping(true);
|
||||||
|
// BeOS HideTyping() seems broken, it empties the text
|
||||||
|
fPassword->SetText(fPasswordSetting->Value());
|
||||||
fFtpSetupBox->AddChild(fPassword);
|
fFtpSetupBox->AddChild(fPassword);
|
||||||
|
|
||||||
aFrame.top = aFrame.bottom + kYBuffer;
|
aFrame.top = aFrame.bottom + kYBuffer;
|
||||||
|
|||||||
Reference in New Issue
Block a user