diff options
| author | 2011-07-21 18:06:45 +0000 | |
|---|---|---|
| committer | 2011-07-21 18:06:45 +0000 | |
| commit | e98c881ff979be368386daa83c00a2f11f92c062 (patch) | |
| tree | e4747459c3ab80a0873436c2d187211ee5da93e3 | |
| parent | temporarly commented out "send as kvs" shortcuts (shift-enter), sinc ethey ar... (diff) | |
| download | KVIrc-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.cpp | 3 |
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) |
