diff options
Diffstat (limited to 'plugins/MirandaG15/src/CChatScreen.cpp')
-rw-r--r-- | plugins/MirandaG15/src/CChatScreen.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/plugins/MirandaG15/src/CChatScreen.cpp b/plugins/MirandaG15/src/CChatScreen.cpp index b4cc5b8a6d..51c6a85b92 100644 --- a/plugins/MirandaG15/src/CChatScreen.cpp +++ b/plugins/MirandaG15/src/CChatScreen.cpp @@ -455,9 +455,9 @@ void CChatScreen::AddIncomingMessage(tstring strMessage,tm *time,bool bIRC) EScrollMode eMode;
switch(CConfig::GetIntSetting(SESSION_AUTOSCROLL))
{
- case SESSION_AUTOSCROLL_NONE: eMode = SCROLL_NONE; break;
case SESSION_AUTOSCROLL_FIRST: eMode = SCROLL_MESSAGE; break;
case SESSION_AUTOSCROLL_LAST: eMode = SCROLL_LINE; break;
+ default: eMode = SCROLL_NONE;
}
m_TextLog.SetAutoscrollMode(eMode);
@@ -756,10 +756,8 @@ void CChatScreen::OnLCDButtonRepeated(int iButton) if(iButton < 2)
{
bool bRes = false;
- if(iButton == LGLCDBUTTON_BUTTON0 || iButton == LGLCDBUTTON_UP) {
+ if(iButton == LGLCDBUTTON_BUTTON0) {
bRes = m_TextLog.ScrollUp();
- } else if(iButton == LGLCDBUTTON_BUTTON1 || iButton == LGLCDBUTTON_DOWN) {
- bRes = m_TextLog.ScrollDown();
}
if(bRes && CConfig::GetBoolSetting(SESSION_SCROLL_MAXIMIZED))
|