]> git.saurik.com Git - wxWidgets.git/blobdiff - src/x11/toplevel.cpp
More deprecated class mods
[wxWidgets.git] / src / x11 / toplevel.cpp
index f7526733eabc0dc7af03fff2347c2b4096ecc064..48374c9ff854c7f2320f2c7a65db5d063cb308e4 100644 (file)
@@ -248,7 +248,7 @@ wxTopLevelWindowX11::~wxTopLevelWindowX11()
     wxTopLevelWindows.DeleteObject(this);
 
     // If this is the last top-level window, exit.
-    if ( wxTheApp && (wxTopLevelWindows.Number() == 0) )
+    if ( wxTheApp && (wxTopLevelWindows.GetCount() == 0) )
     {
         wxTheApp->SetTopWindow(NULL);