Fix SIGSEGV due bad pointer in wxMessageDialog (wxQT)

m_qtWindow should be used instead of m_qtMessageBox (removed). If not, PostCreation() cannot call wxMessageDialog::GetHandle() as it is virtual (and it is called from the ctor), so it fails to set the base window pointer, raising a SIGSEGV in wxWindow::DoSetSize (for more info, see architecture in docs)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@78312 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Mariano Reingart
2014-12-24 19:19:27 +00:00
parent c2ecbadd3b
commit 9f009d128f
2 changed files with 21 additions and 23 deletions

View File

@@ -26,8 +26,6 @@ public:
virtual QMessageBox *GetHandle() const;
private:
QMessageBox *m_qtMessageBox;
};
#endif // _WX_QT_MSGDLG_H_