VirtualBox

Changeset 81345 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Oct 18, 2019 9:05:15 AM (5 years ago)
Author:
vboxsync
Message:

Shared Clipboard/Transfers: Apply file transfers mode on VM start in Main.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r81299 r81345  
    30793079                            if (RT_FAILURE(rc))
    30803080                                LogRel(("Shared Clipboard: Unable to set initial headless mode, rc=%Rrc\n", rc));
     3081
     3082#ifdef VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS
     3083                            /* Setup file transfer mode. */
     3084                            BOOL fFileTransfersEnabled;
     3085                            hrc = pMachine->COMGETTER(ClipboardFileTransfersEnabled)(&fFileTransfersEnabled); H();
     3086                            int rc2 = i_changeClipboardFileTransferMode(RT_BOOL(fFileTransfersEnabled));
     3087                            if (RT_FAILURE(rc2))
     3088                                LogRel(("Shared Clipboard: Unable to set initial file transfers mode, rc=%Rrc\n", rc2));
     3089                            /* Note: Don't let the Shared Clipboard fail as a whole if file transfers aren't available. */
     3090#endif /* VBOX_WITH_SHARED_CLIPBOARD_TRANSFERS */
    30813091                        }
     3092                        else
     3093                            LogRel(("Shared Clipboard: Unable to set initial clipboard mode, rc=%Rrc\n", rc));
    30823094                    }
    30833095                }
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