VirtualBox

Changeset 88652 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 22, 2021 1:14:50 PM (4 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:8161: Small cleanup for Chooser pane; No need for connections from global objects; They will be destroyed in the meantime.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/manager/chooser/UIChooserAbstractModel.cpp

    r88586 r88652  
    10371037void UIChooserAbstractModel::cleanupConnections()
    10381038{
    1039     /* Cloud VM registration connections: */
    1040     disconnect(&uiCommon(), &UICommon::sigCloudMachineUnregistered,
    1041                this, &UIChooserAbstractModel::sltCloudMachineUnregistered);
    1042     disconnect(&uiCommon(), &UICommon::sigCloudMachineRegistered,
    1043                this, &UIChooserAbstractModel::sltCloudMachineRegistered);
    1044 
    1045     /* Global connections: */
    1046     disconnect(gVBoxEvents, &UIVirtualBoxEventHandler::sigMachineStateChange,
    1047                this, &UIChooserAbstractModel::sltLocalMachineStateChanged);
    1048     disconnect(gVBoxEvents, &UIVirtualBoxEventHandler::sigMachineDataChange,
    1049                this, &UIChooserAbstractModel::sltLocalMachineDataChanged);
    1050     disconnect(gVBoxEvents, &UIVirtualBoxEventHandler::sigMachineRegistered,
    1051                this, &UIChooserAbstractModel::sltLocalMachineRegistrationChanged);
    1052     disconnect(gVBoxEvents, &UIVirtualBoxEventHandler::sigSessionStateChange,
    1053                this, &UIChooserAbstractModel::sltSessionStateChanged);
    1054     disconnect(gVBoxEvents, &UIVirtualBoxEventHandler::sigSnapshotTake,
    1055                this, &UIChooserAbstractModel::sltSnapshotChanged);
    1056     disconnect(gVBoxEvents, &UIVirtualBoxEventHandler::sigSnapshotDelete,
    1057                this, &UIChooserAbstractModel::sltSnapshotChanged);
    1058     disconnect(gVBoxEvents, &UIVirtualBoxEventHandler::sigSnapshotChange,
    1059                this, &UIChooserAbstractModel::sltSnapshotChanged);
    1060     disconnect(gVBoxEvents, &UIVirtualBoxEventHandler::sigSnapshotRestore,
    1061                this, &UIChooserAbstractModel::sltSnapshotChanged);
    1062     disconnect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProviderListChanged,
    1063                this, &UIChooserAbstractModel::sltHandleCloudProfileManagerCumulativeChange);
    1064     disconnect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileRegistered,
    1065                this, &UIChooserAbstractModel::sltHandleCloudProfileManagerCumulativeChange);
    1066     disconnect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProfileChanged,
    1067                this, &UIChooserAbstractModel::sltHandleCloudProfileManagerCumulativeChange);
    1068     disconnect(gVBoxEvents, &UIVirtualBoxEventHandler::sigCloudProviderUninstall,
    1069                this, &UIChooserAbstractModel::sltHandleCloudProviderUninstall);
    1070 
    1071     /* Settings saving connections: */
     1039    /* Group saving connections: */
    10721040    disconnect(this, &UIChooserAbstractModel::sigSaveSettings,
    10731041               this, &UIChooserAbstractModel::sltSaveSettings);
    1074 
    1075     /* Extra-data connections: */
    1076     disconnect(gEDataManager, &UIExtraDataManager::sigCloudProfileManagerRestrictionChange,
    1077                this, &UIChooserAbstractModel::sltHandleCloudProfileManagerCumulativeChange);
    10781042}
    10791043
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