summaryrefslogtreecommitdiff
path: root/plugins/MirandaG15/src/CChatScreen.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-06-08 21:10:58 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-06-08 21:10:58 +0000
commit00c46f24d60c9de29293bef608f34114392822d2 (patch)
tree23710e2cecfcea4df55587b2210de62acb4eeb7e /plugins/MirandaG15/src/CChatScreen.cpp
parent038f6cc65778c17300ce5c62bb25723f7fa16714 (diff)
MirandaG15:
- Minor fixes git-svn-id: http://svn.miranda-ng.org/main/trunk@14068 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/MirandaG15/src/CChatScreen.cpp')
-rw-r--r--plugins/MirandaG15/src/CChatScreen.cpp6
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))