--- sbbs/src/sbbs3/ctrl/telnetformunit.cpp 2018/04/24 16:41:24 1.1 +++ sbbs/src/sbbs3/ctrl/telnetformunit.cpp 2018/04/24 16:44:03 1.1.1.2 @@ -1,12 +1,12 @@ /* Synchronet Control Panel (GUI Borland C++ Builder Project for Win32) */ -/* $Id: telnetformunit.cpp,v 1.1 2018/04/24 16:41:24 root Exp $ */ +/* $Id: telnetformunit.cpp,v 1.1.1.2 2018/04/24 16:44:03 root Exp $ */ /**************************************************************************** * @format.tab-size 4 (Plain Text/Source Code File Header) * * @format.use-tabs true (see http://www.synchro.net/ptsc_hdr.html) * * * - * Copyright 2004 Rob Swindell - http://www.synchro.net/copyright.html * + * Copyright 2009 Rob Swindell - http://www.synchro.net/copyright.html * * * * This program is free software; you can redistribute it and/or * * modify it under the terms of the GNU General Public License * @@ -53,4 +53,16 @@ void __fastcall TTelnetForm::FormHide(TO MainForm->ViewTelnet->Checked=false; } //--------------------------------------------------------------------------- +void __fastcall TTelnetForm::LogLevelUpDownChangingEx(TObject *Sender, + bool &AllowChange, short NewValue, TUpDownDirection Direction) +{ + if(NewValue < 0 || NewValue > LOG_DEBUG) + AllowChange = false; + else { + MainForm->bbs_startup.log_level = NewValue; + LogLevelText->Caption = LogLevelDesc[NewValue]; + MainForm->SaveIniSettings(Sender); + } +} +//---------------------------------------------------------------------------