wxDialog::~wxDialog()
{
+ m_isBeingDeleted = TRUE;
+
wxTopLevelWindows.DeleteObject( this );
if (wxTheApp->GetTopWindow() == this)
void wxDialog::OnOK( wxCommandEvent &WXUNUSED(event) )
{
- printf( "OnOK 1.\n" );
if (Validate() && TransferDataFromWindow())
{
- printf( "OnOK 2.\n" );
if (IsModal())
{
- printf( "OnOK: modal.\n" );
EndModal(wxID_OK);
}
else
{
- printf( "OnOK: non-modal.\n" );
SetReturnCode(wxID_OK);
this->Show(FALSE);
}
m_icon = icon;
if (!icon.Ok()) return;
+ if (!m_widget->window) return;
+
wxMask *mask = icon.GetMask();
GdkBitmap *bm = (GdkBitmap *) NULL;
if (mask) bm = mask->GetBitmap();