]> git.saurik.com Git - wxWidgets.git/blobdiff - src/gtk/msgdlg.cpp
change wxDataViewModel::Compare() to including column and sortorder
[wxWidgets.git] / src / gtk / msgdlg.cpp
index 267d54db07a006af8ee616becad40b5f19172367..7202ba2a3249ba44c8857946c796fa18d5b84ff9 100644 (file)
@@ -137,6 +137,12 @@ void wxMessageDialog::GTKCreateMsgDialog()
 
 int wxMessageDialog::ShowModal()
 {
+    // break the mouse capture as it would interfere with modal dialog (see
+    // wxDialog::ShowModal)
+    wxWindow * const win = wxWindow::GetCapture();
+    if ( win )
+        win->GTKReleaseMouseAndNotify();
+
     if ( !m_widget )
     {
         GTKCreateMsgDialog();