Ticket #2676 (closed defect: fixed)
Selecting a virtual machine must not start it automatically => Fixed in SVN
Reported by: | ronnystandtke | Owned by: | |
---|---|---|---|
Component: | GUI | Version: | VirtualBox 2.0.6 |
Keywords: | Cc: | ||
Guest type: | other | Host type: | Linux |
Description
I am using VirtualBox on Kubuntu-8.04.1. If I select any virtual machine in the large left hand side list with a single click of the left mouse button the virtual machine starts up automatically. This is really annoying if e.g. you just want to check the settings of a virtual machine without starting it. This is a major usability issue. This is also a regression because previous versions of VirtualBox did not have this bug.
Attachments
Change History
comment:2 Changed 14 years ago by Dirck
Same with OpenSuse-11.1 (x86_64) and VirtualBox 2.1.0
comment:3 Changed 14 years ago by sehe
Same on intrepid, Gnome, VBox 2.1.2
Very annoying. It is practically impossible to go to 'settings' without accidentally booting/restoring a VPC
comment:4 Changed 14 years ago by frank
We cannot reproduce this on Intrepid/Gnome. Any special mouse setting?
comment:5 Changed 14 years ago by sehe
Nope, most certainly not. I despise single-click (or for that matter, mousing in general) in all contexts.
If you are looking for specific config files, I might upload them.
Thanks, Seth
comment:6 Changed 14 years ago by sehe
Additionally: I can vouch that previous versions (I think <2.1) did not have this problem on the exact same machine. I hardly if ever change desktop settings, so I'm pretty sure I didn't switch this behaviour on myself, even apart from the above arguments why this would be wholly unlikely.
Cheers
comment:7 Changed 14 years ago by Dirck
Nothing changed on OpenSuse-11.1 (x86_64), KDE and VirtualBox 2.1.2
comment:8 Changed 14 years ago by frank
We can reproduce it on some hosts. I've seen this on one Ubuntu 8.10 (GNOME) host (one click starts the VM), on another host, a double click is required to start a VM. Must be some setting somewhere. The reason for this behavior is the definition of this signal.
comment:9 Changed 14 years ago by frank
Btw, with another host I meant another Ubuntu 8.10 (GNOME) host.
comment:10 Changed 14 years ago by STaRMaN
The some here , with VirtualBox 2.1.2 in Kubuntu Intrepid (with kde 4.2.00). VirtualBox package downloaded from Virtualbox site. Linux PC 2.6.27-11-generic #1 SMP Thu Jan 29 19:24:39 UTC 2009 i686 GNU/Linux
comment:11 Changed 14 years ago by STaRMaN
Ah, nothing especial with mouse. Work ok in all another apps.
comment:12 Changed 14 years ago by Dirck
Same behavior with VirtualBox 2.1.4
comment:13 Changed 14 years ago by Dirck
For technical reasons (hardware and (virtual-)disks movement) I reinstalled the host-environment (OpenSuse-11.1 (x86_64), KDE 3.5), made all the recommended updates and installed VirtualBox 2.2.0 in this sequence : The bug(?) is gone. One click selects the machine, a doubleclick starts the machine.
comment:14 Changed 13 years ago by bmustiata
Same behaviour with VirtualBox 3.0.6 (deb provided from website), and 3.0.10 sources compiled, under kubuntu 9.04. It probably depends on some deep setting inside QT libraries and is only triggered in certain circumstances. On my system it happens all the time.
Actually I saw that a workaround was done in order to circumvent this by setting the style (in src/VBox/Frontends/VirtualBox/src/VBoxSelectorWnd.cpp, lines 502-506, at revision 16490 from SVN).
While the spirit of the fix is good, the problem is the setting the value by using an invalid CSS statement (without specifying the value). Namely it should be:
mVMListView->setStyleSheet ("activate-on-singleclick : 0");
instead of
mVMListView->setStyleSheet ("activate-on-singleclick");
as it is now.
Probably the version without the value is simply ignored by QT. Having that change, it works.
I'm going to attach also a patch file.
comment:15 Changed 13 years ago by bmustiata
The unpatched version exhibits the same problem under kubuntu 9.10.
comment:16 Changed 13 years ago by frank
- Summary changed from selecting a virtual machine must not start it automatically to Selecting a virtual machine must not start it automatically => Fixed in SVN
Thank you for this information, this small fix seems indeed to work!
comment:17 Changed 13 years ago by bmustiata
I've updated my sources from svn and as of rev. 24253 which is HEAD, the change is not there.
comment:18 Changed 13 years ago by frank
r24263 from yesterday. Note that the external subversion repository isn't synchronized immediately so changes will take some time until they will be public visible.
comment:19 Changed 13 years ago by frank
- Status changed from new to closed
- Resolution set to fixed
Fixed in 3.0.12.
This does apparently only happen with Kubuntu as far as I can say.