aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Fabio Bas2011-07-21 18:06:45 +0000
committerGravatar Fabio Bas2011-07-21 18:06:45 +0000
commite98c881ff979be368386daa83c00a2f11f92c062 (patch)
treee4747459c3ab80a0873436c2d187211ee5da93e3
parenttemporarly commented out "send as kvs" shortcuts (shift-enter), sinc ethey ar... (diff)
downloadKVIrc-e98c881ff979be368386daa83c00a2f11f92c062.tar.gz
KVIrc-e98c881ff979be368386daa83c00a2f11f92c062.tar.bz2
KVIrc-e98c881ff979be368386daa83c00a2f11f92c062.zip
ircview: correctly detect links when the find widget is visible
git-svn-id: https://svn.kvirc.de/svn/trunk/kvirc@5907 17fca916-40b9-46aa-a4ea-0a15b648b75c
-rw-r--r--src/kvirc/ui/KviIrcView.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/kvirc/ui/KviIrcView.cpp b/src/kvirc/ui/KviIrcView.cpp
index b7c985894..d0c261778 100644
--- a/src/kvirc/ui/KviIrcView.cpp
+++ b/src/kvirc/ui/KviIrcView.cpp
@@ -2503,7 +2503,8 @@ KviIrcViewWrappedBlock * KviIrcView::getLinkUnderMouse(int xPos,int yPos,QRect *
*/
KviIrcViewLine * l = m_pCurLine;
- int iTop = height() + m_iFontDescent - KVI_IRCVIEW_VERTICAL_BORDER;
+ int toolWidgetHeight = m_pToolWidget ? m_pToolWidget->sizeHint().height() : 0;
+ int iTop = height() + m_iFontDescent - KVI_IRCVIEW_VERTICAL_BORDER - toolWidgetHeight;
// our current line begins after the mouse position... go on
while(iTop > yPos)