use BFilePanel::SetSaveText which selects the filename
git-svn-id: file:///srv/svn/repos/haiku/trunk/current@7140 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -902,8 +902,6 @@ StyledEditWindow::SaveAs(BMessage *message)
|
||||
}
|
||||
fSavePanel = new BFilePanel(B_SAVE_PANEL, new BMessenger(this), directory, B_FILE_NODE, false);
|
||||
|
||||
fSavePanelTextView =
|
||||
dynamic_cast<BTextControl*>(fSavePanel->Window()->FindView("text view"));
|
||||
BMenuBar * menuBar =
|
||||
dynamic_cast<BMenuBar*>(fSavePanel->Window()->FindView("MenuBar"));
|
||||
|
||||
@@ -930,13 +928,7 @@ StyledEditWindow::SaveAs(BMessage *message)
|
||||
}
|
||||
}
|
||||
|
||||
// its own scope allows the lock to be released before Show()
|
||||
{
|
||||
BAutolock lock(fSavePanel->Window());
|
||||
if (lock.IsLocked()) {
|
||||
fSavePanelTextView->SetText(Title());
|
||||
}
|
||||
}
|
||||
fSavePanel->SetSaveText(Title());
|
||||
if (message != 0) {
|
||||
fSavePanel->SetMessage(message);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user