VirtualBox

Ignore:
Timestamp:
Nov 11, 2009 5:18:45 PM (15 years ago)
Author:
vboxsync
Message:

FE/Qt4: 4426: USB filters cannot be disabled - state change handler added.

Location:
trunk/src/VBox/Frontends/VirtualBox
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/include/VBoxVMSettingsUSB.h

    r10728 r24600  
    8383    void mdnClicked();
    8484    void showContextMenu (const QPoint &aPos);
     85    void markSettingsChanged();
    8586
    8687private:
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsUSB.cpp

    r23962 r24600  
    107107             this, SLOT (showContextMenu (const QPoint &)));
    108108    connect (mTwFilters, SIGNAL (itemDoubleClicked (QTreeWidgetItem *, int)),
    109              this, SLOT (edtClicked ()));
     109             this, SLOT (edtClicked()));
     110    connect (mTwFilters, SIGNAL (itemChanged (QTreeWidgetItem *, int)),
     111             this, SLOT (markSettingsChanged()));
    110112
    111113    mUSBDevicesMenu = new VBoxUSBMenu (this);
     
    147149    mTwFilters->setCurrentItem (mTwFilters->topLevelItem (0));
    148150    currentChanged (mTwFilters->currentItem());
     151
     152    mUSBFilterListModified = false;
    149153}
    150154
     
    192196    mTwFilters->setCurrentItem (mTwFilters->topLevelItem (0));
    193197    currentChanged (mTwFilters->currentItem());
     198
     199    mUSBFilterListModified = false;
    194200}
    195201
     
    542548}
    543549
     550void VBoxVMSettingsUSB::markSettingsChanged()
     551{
     552    mUSBFilterListModified = true;
     553}
     554
    544555void VBoxVMSettingsUSB::addUSBFilter (const CUSBDeviceFilter &aFilter,
    545556                                      bool isNew)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette