Changeset 5796 in vbox for trunk/src/VBox
- Timestamp:
- Nov 19, 2007 5:06:03 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/ui/VBoxVMSettingsDlg.ui.h
r5795 r5796 1515 1515 static_cast <VBoxVMSerialPortSettings *> (tab); 1516 1516 1517 /* skip disabled ports */1518 if (!page->mSerialPortBox->isChecked())1519 continue;1520 1517 /* check the predefined port number unicity */ 1521 if ( !page->isUserDefined())1518 if (page->mSerialPortBox->isChecked() && !page->isUserDefined()) 1522 1519 { 1523 1520 QString port = page->mPortNumCombo->currentText(); … … 1531 1528 ports << port; 1532 1529 } 1533 /* check the port path unicity */1530 /* check the port path emptiness & unicity */ 1534 1531 CEnums::PortMode mode = 1535 1532 vboxGlobal().toPortMode (page->mHostModeCombo->currentText()); … … 1537 1534 { 1538 1535 QString path = page->mPortPathLine->text(); 1539 valid = !path s.contains (path);1536 valid = !path.isEmpty() && !paths.contains (path); 1540 1537 if (!valid) 1541 1538 { 1542 warningText = tr ("Duplicate port path is entered "); 1539 warningText = path.isEmpty() ? 1540 tr ("Port path is not entered ") : 1541 tr ("Duplicate port path is entered "); 1543 1542 pageTitle += ": " + tbwSerialPorts->tabLabel (tab); 1544 1543 break;
Note:
See TracChangeset
for help on using the changeset viewer.