fix empty ip

This commit is contained in:
TangoCash
2016-10-22 20:20:38 +02:00
committed by M. Liebmann
parent 1530bb8e8c
commit d0b9b3b4a5

View File

@@ -296,7 +296,7 @@ int CTimerList::exec(CMenuTarget* parent, const std::string & actionKey)
if(actionKey == "add_ip") { if(actionKey == "add_ip") {
std::string remoteip; std::string remoteip;
CIPInput remotebox_NetworkIP(LOCALE_REMOTEBOX_IP , &remoteip); CIPInput remotebox_NetworkIP(LOCALE_REMOTEBOX_IP , &remoteip);
if (remotebox_NetworkIP.exec(NULL,"") == true) { if ((remotebox_NetworkIP.exec(NULL,"") == true) && (!remoteip.empty())) {
remboxmenu->addItem(new CMenuForwarder(remoteip, true, NULL, this, "cha_ip")); remboxmenu->addItem(new CMenuForwarder(remoteip, true, NULL, this, "cha_ip"));
remotebox_NetworkIP.hide(); remotebox_NetworkIP.hide();
changed = true; changed = true;