VirtualBox

Changeset 75367 in vbox for trunk/src/VBox/Main/src-server


Ignore:
Timestamp:
Nov 9, 2018 4:09:09 PM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
126502
Message:

Recording: Only allow settings to be changed when recording is disabled when the machine is running in RecordingSettings::i_canChangeSettings().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-server/RecordingSettingsImpl.cpp

    r75361 r75367  
    590590    AutoReadLock alock(this COMMA_LOCKVAL_SRC_POS);
    591591
    592     /* Only allow settings to be changed when recording is disabled. */
    593     return m->bd->fEnabled == false;
     592    /* Only allow settings to be changed when recording is disabled when the machine is running. */
     593    if (   Global::IsOnline(adep.machineState())
     594        && m->bd->fEnabled)
     595    {
     596        return false;
     597    }
     598
     599    return true;
    594600}
    595601
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