mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-21 05:39:11 -04:00
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:
parent
d959d27e41
commit
fb28284be3
7 changed files with 45 additions and 19 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue