Skip to content

Commit 3deb5c9

Browse files
committed
API: bugref:11116 Addendum to r174528. Do not disable the serial port, just disconnect and clear the host file path. Plus a grammar fix in the warning message.
svn:sync-xref-src-repo-rev: r174531
1 parent 52dcf1e commit 3deb5c9

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

src/VBox/Main/src-server/ApplianceImplImport.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: ApplianceImplImport.cpp 114692 2026-07-14 10:57:00Z serkan.bayraktar@oracle.com $ */
1+
/* $Id: ApplianceImplImport.cpp 114695 2026-07-14 11:41:05Z serkan.bayraktar@oracle.com $ */
22
/** @file
33
* IAppliance and IVirtualSystem COM class implementations.
44
*/
@@ -393,7 +393,7 @@ HRESULT Appliance::interpret()
393393
if (port_it->portMode == PortMode_RawFile)
394394
{
395395
i_addWarning(tr("Virtual appliance \"%s\" was configured with serial port(s) "
396-
"with \"raw file\" mode. These setting will not be imported"), vsysThis.strName.c_str());
396+
"with \"raw file\" mode. This setting will not be imported."), vsysThis.strName.c_str());
397397
break;
398398
}
399399
}

src/VBox/Main/xml/Settings.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/* $Id: Settings.cpp 114692 2026-07-14 10:57:00Z serkan.bayraktar@oracle.com $ */
1+
/* $Id: Settings.cpp 114695 2026-07-14 11:41:05Z serkan.bayraktar@oracle.com $ */
22
/** @file
33
* Settings File Manipulation API.
44
*
@@ -9706,7 +9706,6 @@ void MachineConfigFile::sanitizeImportedSerialPorts()
97069706
if (port.portMode == PortMode_RawFile)
97079707
{
97089708
port.portMode = PortMode_Disconnected;
9709-
port.fEnabled = false;
97109709
port.strPath.setNull();
97119710
}
97129711
}

0 commit comments

Comments
 (0)