Added a notify in SecurityIpItem when the ip address was added to the whitelist.

git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@8355 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
thunder2 2015-06-03 15:14:26 +00:00
parent d959d27e41
commit fb28284be3
7 changed files with 45 additions and 19 deletions

View file

@ -153,13 +153,18 @@ void RsBanListToolButton::applyIp()
}
masked_bytes = action->data().toUInt();
bool changed = false;
switch (mMode) {
case MODE_ADD:
rsBanList->addIpRange(addr, masked_bytes, list_type, "");
changed = rsBanList->addIpRange(addr, masked_bytes, list_type, "");
break;
case MODE_REMOVE:
rsBanList->removeIpRange(addr, masked_bytes, list_type);
changed = rsBanList->removeIpRange(addr, masked_bytes, list_type);
break;
}
if (changed) {
emit banListChanged();
}
}