]> git.saurik.com Git - wxWidgets.git/blobdiff - src/unix/dialup.cpp
minor fixes
[wxWidgets.git] / src / unix / dialup.cpp
index 4985bd9ef7ad4b60e9b37b6ade0f0bc2a1a367da..ddafb960fde05c4c39528ee8b976e68ce4ece77a 100644 (file)
@@ -353,7 +353,7 @@ wxDialUpManagerImpl::CheckStatus(bool fromAsync) const
    ( /* non-const */ (wxDialUpManagerImpl *)this)->CheckStatusInternal();
 
    // now send the events as appropriate:
    ( /* non-const */ (wxDialUpManagerImpl *)this)->CheckStatusInternal();
 
    // now send the events as appropriate:
-   if(m_IsOnline != oldIsOnline)
+   if(m_IsOnline != oldIsOnline && oldIsOnline != -1)
    {
       wxDialUpEvent event(m_IsOnline, ! fromAsync);
       (void)wxTheApp->ProcessEvent(event);
    {
       wxDialUpEvent event(m_IsOnline, ! fromAsync);
       (void)wxTheApp->ProcessEvent(event);