[Kde-pim] solving right-click changing folder problem

Ingo Klöcker kloecker at kde.org
Sun May 31 14:35:11 BST 2009


On Sunday 31 May 2009, Frank Thieme wrote:
> Hi!
>
> As it bugs me since ages I had a look how to solve the problem, that
> a right click on any folder actually opens that folder before showing
> the context menu.

Just a warning: Most if not all of the code assumes that the folder the 
action selected from the context menu should be performed on is the 
current folder.


> But as I'm not experienced with the kmail/kde/qt codebase, I started
> with FolderView::conextMenuEvent() and removed the activateItem()
> line.
>
> next is to remember last button pressed was right button in
> FolderView::mousePressEvent() and ignore the activateItem() line of
> FolderView::slotItemClicked() if it was a right-click.
>
> Somehow the folder is still opened.
>
> Any suggestions where I should look for?

Did you already debug this? You could set a breakpoint in the method 
opening the folder and then check the backtrace.


Regards,
Ingo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: This is a digitally signed message part.
URL: <http://mail.kde.org/pipermail/kde-pim/attachments/20090531/db623bd5/attachment.sig>
-------------- next part --------------
_______________________________________________
KDE PIM mailing list kde-pim at kde.org
https://mail.kde.org/mailman/listinfo/kde-pim
KDE PIM home page at http://pim.kde.org/


More information about the kde-pim mailing list