https://bugs.kde.org/show_bug.cgi?id=406028
--- Comment #12 from Antonio <antonio.prc...@gmail.com> --- (In reply to Nate Graham from comment #10) > It's switching the view to show the right-clicked-on item because you're > emitting slotItemActivated(), which does that. > > How about if you emit neither slotItemActivated() nor updateCurrentItem()? > If that doesn't work, then you may need to create a new one that's basically > like slotItemActivated(), but doesn't activate the item. unfortunately , I can't come up with another version of slotItemActivated() that would do this. Problem, for me, so far is following: To not copy-paste code and instead use the same function call for both the folder panel and the main view, I'd say that quite a bit would have to be rewritten/added. The current function (method) that is being called when a right click is made, is the following: https://cgit.kde.org/dolphin.git/tree/src/dolphinmainwindow.cpp#n918 Now, at line 923: 'new DolphinContextMenu(this, pos, item, url);' Where 'this' is a 'DolphinMainWindow' object. The url is passed properly, but since 'this' is used, it takes the property of the currently active window. Whereas the 'this' that is sent via: https://cgit.kde.org/dolphin.git/tree/src/panels/folders/folderspanel.cpp#n219 to: https://cgit.kde.org/dolphin.git/tree/src/panels/folders/treeviewcontextmenu.h#n46 is of type 'FoldersPanel'. So I just can't redirect it to 'new DolphinContextMenu()'. Either I overload some stuff from DolphinContextMenu, which might be a overkill or I keep my mind busy with this one until I come up with something simple and elegant. /me ends monologue :) -- You are receiving this mail because: You are watching all bug changes.