projects
/
wxWidgets.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
correction to last commit: Korean and Romanian translations will only be in 2.9.1...
[wxWidgets.git]
/
src
/
html
/
helpctrl.cpp
diff --git
a/src/html/helpctrl.cpp
b/src/html/helpctrl.cpp
index bc026182ee947ce4c2094b9ce303a3929b060e7b..28e07592b7b2fa1bad8fafcfbc2db1be91cd1372 100644
(file)
--- a/
src/html/helpctrl.cpp
+++ b/
src/html/helpctrl.cpp
@@
-87,12
+87,13
@@
void wxHtmlHelpController::OnCloseFrame(wxCloseEvent& evt)
{
if (m_Config)
WriteCustomization(m_Config, m_ConfigRoot);
{
if (m_Config)
WriteCustomization(m_Config, m_ConfigRoot);
-
+
evt.Skip();
OnQuit();
evt.Skip();
OnQuit();
- m_helpWindow->SetController(NULL);
+ if ( m_helpWindow )
+ m_helpWindow->SetController(NULL);
m_helpWindow = NULL;
m_helpDialog = NULL;
m_helpFrame = NULL;
m_helpWindow = NULL;
m_helpDialog = NULL;
m_helpFrame = NULL;
@@
-155,8
+156,8
@@
wxHtmlHelpFrame* wxHtmlHelpController::CreateHelpFrame(wxHtmlHelpData *data)
{
wxHtmlHelpFrame* frame = new wxHtmlHelpFrame(data);
frame->SetController(this);
{
wxHtmlHelpFrame* frame = new wxHtmlHelpFrame(data);
frame->SetController(this);
- frame->
SetTitleFormat(m_titleFormat);
- frame->
Create(m_parentWindow, -1, wxEmptyString, m_FrameStyle
);
+ frame->
Create(m_parentWindow, -1, wxEmptyString, m_FrameStyle, m_Config, m_ConfigRoot);
+ frame->
SetTitleFormat(m_titleFormat
);
m_helpFrame = frame;
return frame;
}
m_helpFrame = frame;
return frame;
}
@@
-165,7
+166,7
@@
wxHtmlHelpDialog* wxHtmlHelpController::CreateHelpDialog(wxHtmlHelpData *data)
{
wxHtmlHelpDialog* dialog = new wxHtmlHelpDialog(data);
dialog->SetController(this);
{
wxHtmlHelpDialog* dialog = new wxHtmlHelpDialog(data);
dialog->SetController(this);
- dialog->SetTitleFormat(m_titleFormat);
+ dialog->SetTitleFormat(m_titleFormat);
dialog->Create(m_parentWindow, -1, wxEmptyString, m_FrameStyle);
m_helpDialog = dialog;
return dialog;
dialog->Create(m_parentWindow, -1, wxEmptyString, m_FrameStyle);
m_helpDialog = dialog;
return dialog;
@@
-239,7
+240,7
@@
void wxHtmlHelpController::UseConfig(wxConfigBase *config, const wxString& rootp
bool wxHtmlHelpController::Initialize(const wxString& file)
{
wxString dir, filename, ext;
bool wxHtmlHelpController::Initialize(const wxString& file)
{
wxString dir, filename, ext;
- wxSplitPath(file, & dir, & filename, & ext);
+ wx
FileName::
SplitPath(file, & dir, & filename, & ext);
if (!dir.empty())
dir = dir + wxFILE_SEP_PATH;
if (!dir.empty())
dir = dir + wxFILE_SEP_PATH;