Reverted changes that set m_widget to NULL in native
GTK+ dialogs for now. The problem persists, that when quitting the native file dialog with ESC, the dialog will be destroyed twice. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30807 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -108,10 +108,10 @@ static void gtk_filedialog_response_callback(GtkWidget *w,
|
|||||||
{
|
{
|
||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
|
|
||||||
if (response == GTK_RESPONSE_CANCEL)
|
if (response == GTK_RESPONSE_ACCEPT)
|
||||||
gtk_filedialog_cancel_callback(w, dialog);
|
|
||||||
else
|
|
||||||
gtk_filedialog_ok_callback(w, dialog);
|
gtk_filedialog_ok_callback(w, dialog);
|
||||||
|
else
|
||||||
|
gtk_filedialog_cancel_callback(w, dialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@@ -182,7 +182,6 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
|
|||||||
|
|
||||||
wxFileDialog::~wxFileDialog()
|
wxFileDialog::~wxFileDialog()
|
||||||
{
|
{
|
||||||
m_widget = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxFileDialog::GetFilenames(wxArrayString& files) const
|
void wxFileDialog::GetFilenames(wxArrayString& files) const
|
||||||
|
@@ -97,7 +97,6 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
|
|||||||
|
|
||||||
wxMessageDialog::~wxMessageDialog()
|
wxMessageDialog::~wxMessageDialog()
|
||||||
{
|
{
|
||||||
m_widget = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int wxMessageDialog::ShowModal()
|
int wxMessageDialog::ShowModal()
|
||||||
|
@@ -108,10 +108,10 @@ static void gtk_filedialog_response_callback(GtkWidget *w,
|
|||||||
{
|
{
|
||||||
wxapp_install_idle_handler();
|
wxapp_install_idle_handler();
|
||||||
|
|
||||||
if (response == GTK_RESPONSE_CANCEL)
|
if (response == GTK_RESPONSE_ACCEPT)
|
||||||
gtk_filedialog_cancel_callback(w, dialog);
|
|
||||||
else
|
|
||||||
gtk_filedialog_ok_callback(w, dialog);
|
gtk_filedialog_ok_callback(w, dialog);
|
||||||
|
else
|
||||||
|
gtk_filedialog_cancel_callback(w, dialog);
|
||||||
}
|
}
|
||||||
|
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
@@ -182,7 +182,6 @@ wxFileDialog::wxFileDialog(wxWindow *parent, const wxString& message,
|
|||||||
|
|
||||||
wxFileDialog::~wxFileDialog()
|
wxFileDialog::~wxFileDialog()
|
||||||
{
|
{
|
||||||
m_widget = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void wxFileDialog::GetFilenames(wxArrayString& files) const
|
void wxFileDialog::GetFilenames(wxArrayString& files) const
|
||||||
|
@@ -97,7 +97,6 @@ wxMessageDialog::wxMessageDialog(wxWindow *parent,
|
|||||||
|
|
||||||
wxMessageDialog::~wxMessageDialog()
|
wxMessageDialog::~wxMessageDialog()
|
||||||
{
|
{
|
||||||
m_widget = NULL;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
int wxMessageDialog::ShowModal()
|
int wxMessageDialog::ShowModal()
|
||||||
|
Reference in New Issue
Block a user