diff --git a/common/CMakeLists.txt b/common/CMakeLists.txt index c32e886f26..e6e62b94ee 100644 --- a/common/CMakeLists.txt +++ b/common/CMakeLists.txt @@ -24,7 +24,6 @@ set(COMMON_SRCS copy_to_clipboard.cpp dialog_display_info_HTML_base.cpp dialog_load_error.cpp - dialog_load_error_base.cpp dcsvg.cpp displlst.cpp dlist.cpp diff --git a/common/dialog_load_error.cpp b/common/dialog_load_error.cpp index 9f3fb9b282..ced37f883a 100644 --- a/common/dialog_load_error.cpp +++ b/common/dialog_load_error.cpp @@ -10,7 +10,7 @@ DIALOG_DISPLAY_HTML_TEXT_BASE( parent, wxID_ANY, _("Load Error!"),wxDefaultPosit void DIALOG_LOAD_ERROR::OnCloseButtonClick( wxCommandEvent& event ) { - Destroy(); + EndModal(0); } @@ -23,11 +23,11 @@ void DIALOG_LOAD_ERROR::ListClear(void) * Add a list of items. * @param list = a pointer on a string containing items. Items are separated by '\n' */ -void DIALOG_LOAD_ERROR::ListSet(wxString *list) +void DIALOG_LOAD_ERROR::ListSet(const wxString &list) { wxArrayString* wxStringSplit( wxString txt, wxChar splitter ); - wxArrayString* strings_list = wxStringSplit( *list, wxChar('\n') ); + wxArrayString* strings_list = wxStringSplit( list, wxChar('\n') ); m_htmlWindow->AppendToPage(wxT("