VirtualBox

Changeset 83199 in vbox


Ignore:
Timestamp:
Mar 4, 2020 11:59:35 AM (5 years ago)
Author:
vboxsync
Message:

FE/Qt: bugref:9653: VirtualBox Manager: Chooser pane: Commit r136332 helped to reveal bug in commit r136026: Lack of type checking forced UIChooserModel to handle unrelated thread tasks as well.

File:
1 edited

Legend:

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

    r83060 r83199  
    4343#include "UIMessageCenter.h"
    4444#include "UIModalWindowManager.h"
     45#include "UITask.h"
    4546#include "UIVirtualBoxManagerWidget.h"
    4647#include "UIVirtualMachineItem.h"
     
    711712void UIChooserModel::sltHandleCloudAcquireInstancesTaskComplete(UITask *pTask)
    712713{
     714    /* Skip unrelated tasks: */
     715    if (!pTask || pTask->type() != UITask::Type_CloudAcquireInstances)
     716        return;
     717
    713718    /* Call to base-class: */
    714719    UIChooserAbstractModel::sltHandleCloudAcquireInstancesTaskComplete(pTask);
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