VirtualBox

Changeset 34398 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Nov 26, 2010 4:24:58 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
68169
Message:

Guest Additions update: Don't wait when showing modal progress dialog in GUI.

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageGuestCtrl.cpp

    r34338 r34398  
    14501450            ComPtr<IProgress> progress;
    14511451            CHECK_ERROR(guest, UpdateGuestAdditions(Bstr(Utf8Source).raw(),
    1452                                                     0 /* Flags, not used. */,
     1452                                                    AdditionsUpdateFlag_None,
    14531453                                                    progress.asOutParam()));
    14541454            if (FAILED(rc))
  • trunk/src/VBox/Frontends/VirtualBox/src/runtime/UISession.cpp

    r34254 r34398  
    364364    CGuest guest = session().GetConsole().GetGuest();
    365365#ifdef DEBUG_andy
    366     CProgress progressInstall = guest.UpdateGuestAdditions("c:\\Downloads\\VBoxGuestAdditions_3.2.8.iso", 0);
     366    CProgress progressInstall = guest.UpdateGuestAdditions("c:\\Downloads\\VBoxGuestAdditions_3.2.8.iso",
     367                                                           AdditionsUpdateFlag_WaitForUpdateStartOnly);
    367368#else
    368     CProgress progressInstall = guest.UpdateGuestAdditions(strSource, 0 /* Flags, not used. */);
     369    /* Since we are going to show a modal progress dialog we don't want to wait for the whole
     370     * update progress being complete - the user might need to interact with the VM to confirm (WHQL)
     371     * popups - instead we only wait until the actual update process was started. */
     372    CProgress progressInstall = guest.UpdateGuestAdditions(strSource,
     373                                                           AdditionsUpdateFlag_WaitForUpdateStartOnly);
    369374#endif
    370375    bool fResult = guest.isOk();
Note: See TracChangeset for help on using the changeset viewer.

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