]> git.saurik.com Git - wxWidgets.git/blobdiff - src/mac/carbon/dialog.cpp
Translated a double click into just a second click for Scintilla
[wxWidgets.git] / src / mac / carbon / dialog.cpp
index 760c07680a91543be3bb019f8eba670f2e08b247..044002d970b1076ba6d8c912a834b55152996b82 100644 (file)
@@ -215,6 +215,7 @@ void wxDialog::DoShowModal()
     }
        // TODO : test whether parent gets disabled
 
+       bool formerModal = s_macIsInModalLoop ;
        s_macIsInModalLoop = true ;
 
        while ( IsModalShowing() )
@@ -225,7 +226,7 @@ void wxDialog::DoShowModal()
                wxTheApp->MacDoOneEvent() ;
        }
        
-       s_macIsInModalLoop = false ;
+       s_macIsInModalLoop = formerModal ;
 
     // TODO probably reenable the parent window if any