projects
/
quassel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7d7c70c
)
Prevent ChatView from scrolling up 1px on buffer switch, fixes #544
author
Manuel Nickschas
<sputnick@quassel-irc.org>
Thu, 12 Feb 2009 08:06:26 +0000
(09:06 +0100)
committer
Manuel Nickschas
<sputnick@quassel-irc.org>
Thu, 12 Feb 2009 08:06:26 +0000
(09:06 +0100)
src/qtui/chatview.cpp
patch
|
blob
|
history
diff --git
a/src/qtui/chatview.cpp
b/src/qtui/chatview.cpp
index
c8d6699
..
2787492
100644
(file)
--- a/
src/qtui/chatview.cpp
+++ b/
src/qtui/chatview.cpp
@@
-163,6
+163,10
@@
void ChatView::verticalScrollbarChanged(int newPos) {
}
}
_lastScrollbarPos = newPos;
+
+ // FIXME: Fugly workaround for the ChatView scrolling up 1px on buffer switch
+ if(vbar->maximum() - newPos <= 2)
+ vbar->setValue(vbar->maximum());
}
MsgId ChatView::lastMsgId() const {