VirtualBox

Changeset 19634 in vbox for trunk


Ignore:
Timestamp:
May 12, 2009 2:45:10 PM (16 years ago)
Author:
vboxsync
Message:

FE/Qt4: allow to disable a serial port even if the port path is missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/VBoxVMSettingsSerial.cpp

    r19624 r19634  
    278278            if (!valid)
    279279            {
    280                 aWarning = path.isEmpty() ?
    281                     tr ("Port path is not specified ") :
    282                     tr ("Duplicate port path is entered ");
    283                 aTitle += ": " +
    284                     vboxGlobal().removeAccelMark (mTabWidget->tabText (mTabWidget->indexOf (tab)));
    285                 break;
     280                if (!page->mGbSerial->isChecked())
     281                    page->mCbMode->setCurrentIndex (KPortMode_Disconnected);
     282                else
     283                {
     284                    aWarning = path.isEmpty() ?
     285                        tr ("Port path is not specified ") :
     286                        tr ("Duplicate port path is entered ");
     287                    aTitle += ": " +
     288                        vboxGlobal().removeAccelMark (mTabWidget->tabText (mTabWidget->indexOf (tab)));
     289                    break;
     290                }
    286291            }
    287292            paths << path;
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