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
This commit is contained in:
Vadim Zeitlin 2003-07-24 21:21:24 +00:00
parent 90b6b97467
commit 90e9494a5d

View File

@ -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