VirtualBox

Changeset 57362 in vbox


Ignore:
Timestamp:
Aug 14, 2015 3:36:04 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
102125
Message:

FE/Qt: Port-forwarding dialog: New NLS message for the case of incorrect IP addresses.

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

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

    r56953 r57362  
    11411141}
    11421142
    1143 bool UIMessageCenter::warnAboutIncorrectPort(QWidget *pParent /* = 0*/) const
     1143bool UIMessageCenter::warnAboutIncorrectPort(QWidget *pParent /* = 0 */) const
    11441144{
    11451145    alert(pParent, MessageType_Error,
    11461146          tr("The current port forwarding rules are not valid. "
    11471147             "None of the host or guest port values may be set to zero."));
     1148    return false;
     1149}
     1150
     1151bool UIMessageCenter::warnAboutIncorrectAddress(QWidget *pParent /* = 0 */) const
     1152{
     1153    alert(pParent, MessageType_Error,
     1154          tr("The current port forwarding rules are not valid. "
     1155             "All of the host or guest address values should correct if not empty."));
    11481156    return false;
    11491157}
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h

    r56953 r57362  
    238238    void cannotAttachDevice(const CMachine &machine, UIMediumType type, const QString &strLocation, const StorageSlot &storageSlot, QWidget *pParent = 0);
    239239    bool warnAboutIncorrectPort(QWidget *pParent = 0) const;
     240    bool warnAboutIncorrectAddress(QWidget *pParent = 0) const;
    240241    bool warnAboutNameShouldBeUnique(QWidget *pParent = 0) const;
    241242    bool warnAboutRulesConflict(QWidget *pParent = 0) const;
  • trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPortForwardingTable.cpp

    r57361 r57362  
    729729        if (   (!hostIp.isEmpty() && QHostAddress(hostIp).isNull())
    730730            || (!guestIp.isEmpty() && QHostAddress(guestIp).isNull()))
    731             return msgCenter().warnAboutIncorrectPort(window());
     731            return msgCenter().warnAboutIncorrectAddress(window());
    732732
    733733        /* Make sure non of the names were previosly used: */
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