Don't open chat window if the user "right"-click friend #3205
Comments
you're double clicking or your mouse is broken |
@ProMcTagonist @zetok |
^ and chat window appears when I right-click (again, not LEFT click) red dot position. |
I can reproduce the issue on Windows 10 64-bit, looking into it. |
I think I may have fixed it but I have no way to test it (I haven't figured out how to compile under windows). Could someone either guide me how to compile under windows (I'm trying to use MSYS2 instead of MinGW) or help me test the fix? I don't want to commit/submit a PR yet since I have absolutely no idea if it works (all I know is that it doesn't break anything under Linux). |
initramfs, I have some sort of a Windows build-system going, so I should be able to give it a go, if I get the change(s). :] |
@Chiitoo If possible, clone my fork of the qTox repo from https://github.com/initramfs/qTox.git and checkout the |
Works for me. A difference to Linux build: a subsequent right-click will open a new context-menu, on what ever is right-clicked (the empty space of the contacts are, or a contact), instead of only closing the previously opened menu (which is what happens on Linux). Not a grave problem, but an inconsistency to say the least. ^^ |
@Chiitoo Thank you very much. Though that problem doesn't happen with me (the additional context menus in Linux) at least I know I'm on the right track. |
I meant that on Linux, when right-clicking for example contact 1, the menu appears. If the next action is right-clicking contact 2, the 1st menu disappears and nothing else happens. On Windows, when right-clicking contact 1, the menu appears, and when right-clicking contact 2 as the next action, the 1st menu disappears and 2nd opens immediately. |
@Chiitoo Right, I see what you mean now. Regarding that my commit didn't change a thing (checking out 5045c46 [master branch |
The inconsistent behaviour between windows/linux seems to be due to QTBUG-5797 which affects Qt 5.6.0 and seems to already have been fixed in the upcomning revision. As such, I'm submitting a PR now that commits the fix I proposed earlier. |
I wonder if that was the link you meant it to be? It's about a bug from 2009, affecting 4.6.0. ^^ That I'm actually using the 5.6 development branch right now (reported as 5.6.1 by qTox) on Linux, while the Windows builds get 5.5 (5.5.1), so that could certainly explain some things... should have mentioned that earlier. Sorries! Definitely shouldn't hold back the pull request in any case. :] |
Oh my, I didn't notice at all (thought it said 5.6 in the link). Anyways, is it possible to build qTox under Qt 5.6 for Windows (from the current master branch) and verify that the bug is still present? |
If only I had not been procrastinating and had the Windows builds on Gentoo already... Currently, my Windows builds come from Linux Mint (Debian Edition), and I'm not sure I'd dare setting up Qt-builds there. :V I'll let you know if I get it done, though, if no one else gets to it before me. |
Brief Description
OS: Windows 8.1
qTox version: v1.4.0-2-g24a7f4d
Commit hash: 24a7f
toxcore: 0.0.0
Qt: 5.5.1
…
Reproducible: Always
Steps to reproduce
Observed Behavior
Expected Behavior
Don't show/open friend chat window if the user 'right'-click it.
Instead, open only right-click menu.
[X] Multi Window - [X] Open each...
The text was updated successfully, but these errors were encountered: