[Konversation-devel] [Bug 261842] Right-clicking link in topic shows empty menu - sometimes

Eike Hein hein at kde.org
Mon Jan 3 20:15:24 CET 2011


https://bugs.kde.org/show_bug.cgi?id=261842


Eike Hein <hein at kde.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
         Resolution|                            |FIXED




--- Comment #3 from Eike Hein <hein kde org>  2011-01-03 20:15:23 ---
commit d675514d3c5fb72ac2754d691789996ce1553299
branch master
Author: Eike Hein <hein at kde.org>
Date:   Mon Jan 3 19:42:38 2011 +0100

    In <Qt 4.7 mode make linkMenu() set the link actions visible in case
textMenu() hid them.

    BUG:261842

diff --git a/src/viewer/irccontextmenus.cpp b/src/viewer/irccontextmenus.cpp
index 5f1339b..faec234 100644
--- a/src/viewer/irccontextmenus.cpp
+++ b/src/viewer/irccontextmenus.cpp
@@ -916,6 +916,9 @@ void IrcContextMenus::setupLinkMenu()

 void IrcContextMenus::linkMenu(const QPoint& pos, const QString& link)
 {
+    foreach(QAction* action, self()->m_linkActions)
+        action->setVisible(true);
+
     QAction* action = self()->m_linkMenu->exec(pos);

     processLinkAction(extractActionId(action), link);

-- 
Configure bugmail: https://bugs.kde.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the Konversation-devel mailing list