Changeset 57362 in vbox
- Timestamp:
- Aug 14, 2015 3:36:04 PM (10 years ago)
- svn:sync-xref-src-repo-rev:
- 102125
- 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 1141 1141 } 1142 1142 1143 bool UIMessageCenter::warnAboutIncorrectPort(QWidget *pParent /* = 0 */) const1143 bool UIMessageCenter::warnAboutIncorrectPort(QWidget *pParent /* = 0 */) const 1144 1144 { 1145 1145 alert(pParent, MessageType_Error, 1146 1146 tr("The current port forwarding rules are not valid. " 1147 1147 "None of the host or guest port values may be set to zero.")); 1148 return false; 1149 } 1150 1151 bool 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.")); 1148 1156 return false; 1149 1157 } -
trunk/src/VBox/Frontends/VirtualBox/src/globals/UIMessageCenter.h
r56953 r57362 238 238 void cannotAttachDevice(const CMachine &machine, UIMediumType type, const QString &strLocation, const StorageSlot &storageSlot, QWidget *pParent = 0); 239 239 bool warnAboutIncorrectPort(QWidget *pParent = 0) const; 240 bool warnAboutIncorrectAddress(QWidget *pParent = 0) const; 240 241 bool warnAboutNameShouldBeUnique(QWidget *pParent = 0) const; 241 242 bool warnAboutRulesConflict(QWidget *pParent = 0) const; -
trunk/src/VBox/Frontends/VirtualBox/src/widgets/UIPortForwardingTable.cpp
r57361 r57362 729 729 if ( (!hostIp.isEmpty() && QHostAddress(hostIp).isNull()) 730 730 || (!guestIp.isEmpty() && QHostAddress(guestIp).isNull())) 731 return msgCenter().warnAboutIncorrect Port(window());731 return msgCenter().warnAboutIncorrectAddress(window()); 732 732 733 733 /* Make sure non of the names were previosly used: */
Note:
See TracChangeset
for help on using the changeset viewer.