From 90e9494a5dc52dc59e9c44dfc68b8ce9bf9307b3 Mon Sep 17 00:00:00 2001 From: Vadim Zeitlin Date: Thu, 24 Jul 2003 21:21:24 +0000 Subject: [PATCH] if IsAlwaysOnline() returns true, IsOnline() should also return true git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@22282 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- src/msw/dialup.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/msw/dialup.cpp b/src/msw/dialup.cpp index 72b6990c78..3ccfba7a7f 100644 --- a/src/msw/dialup.cpp +++ b/src/msw/dialup.cpp @@ -961,6 +961,12 @@ bool wxDialUpManagerMSW::IsOnline() const { wxCHECK_MSG( IsOk(), FALSE, wxT("using uninitialized wxDialUpManager") ); + if ( IsAlwaysOnline() ) + { + // always => now + return true; + } + if ( ms_userSpecifiedOnlineStatus != -1 ) { // user specified flag overrides our logic