don't duplicate wxGetTopLevelParent() code in wxHtmlHelpController::FindTopLevelWindow()
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@60514 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -115,12 +115,7 @@ void wxHtmlHelpController::SetTitleFormat(const wxString& title)
|
|||||||
// Find the top-most parent window
|
// Find the top-most parent window
|
||||||
wxWindow* wxHtmlHelpController::FindTopLevelWindow()
|
wxWindow* wxHtmlHelpController::FindTopLevelWindow()
|
||||||
{
|
{
|
||||||
wxWindow* parent = m_helpWindow;
|
return wxGetTopLevelParent(m_helpWindow);
|
||||||
while (parent && !parent->IsTopLevel())
|
|
||||||
{
|
|
||||||
parent = parent->GetParent();
|
|
||||||
}
|
|
||||||
return parent;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
bool wxHtmlHelpController::AddBook(const wxFileName& book_file, bool show_wait_msg)
|
bool wxHtmlHelpController::AddBook(const wxFileName& book_file, bool show_wait_msg)
|
||||||
|
Reference in New Issue
Block a user