VirtualBox

Ticket #2676 (closed defect: fixed)

Opened 1 year ago

Last modified 4 months ago

Selecting a virtual machine must not start it automatically => Fixed in SVN

Reported by: ronnystandtke Assigned to:
Priority: major 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

VBoxSelectorWnd.patch (0.6 kB) - added by bmustiata on 2009-10-30 22:50:20.
VBoxSelectorWnd.cpp patch

Change History

2008-11-30 21:27:03 changed by frank

This does apparently only happen with Kubuntu as far as I can say.

2008-12-31 17:56:36 changed by Dirck

Same with OpenSuse?-11.1 (x86_64) and VirtualBox 2.1.0

2009-01-28 14:43:09 changed 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

2009-01-28 15:03:38 changed by frank

We cannot reproduce this on Intrepid/Gnome. Any special mouse setting?

2009-01-28 15:07:33 changed 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

2009-01-28 15:09:30 changed 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

2009-01-28 21:42:55 changed by Dirck

Nothing changed on OpenSuse?-11.1 (x86_64), KDE and VirtualBox 2.1.2

2009-02-02 21:37:08 changed 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.

2009-02-02 21:57:19 changed by frank

Btw, with another host I meant another Ubuntu 8.10 (GNOME) host.

2009-02-17 03:32:25 changed 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

2009-02-17 03:33:08 changed by STaRMaN

Ah, nothing especial with mouse. Work ok in all another apps.

2009-02-26 20:53:26 changed by Dirck

Same behavior with VirtualBox 2.1.4

2009-04-24 10:47:36 changed 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.

2009-10-30 22:49:32 changed 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.

2009-10-30 22:50:20 changed by bmustiata

  • attachment VBoxSelectorWnd.patch added.

VBoxSelectorWnd.cpp patch

2009-10-31 22:41:42 changed by bmustiata

The unpatched version exhibits the same problem under kubuntu 9.10.

2009-11-02 16:12:10 changed 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!

2009-11-03 00:26:10 changed by bmustiata

I've updated my sources from svn and as of rev. 24253 which is HEAD, the change is not there.

2009-11-03 20:43:13 changed 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.

2009-11-17 14:18:37 changed by frank

  • status changed from new to closed.
  • resolution set to fixed.

Fixed in 3.0.12.


ContactPrivacy policy