mirror of
https://github.com/tnodir/fort
synced 2024-11-15 07:06:08 +00:00
Review TODO-s.
This commit is contained in:
parent
4e5e0254d2
commit
e200aec5d4
@ -111,7 +111,8 @@ static PFORT_PACKET fort_defer_packet_get(PFORT_DEFER defer)
|
||||
const tommy_size_t size = tommy_arrayof_size(&defer->packets);
|
||||
|
||||
/* TODO: tommy_arrayof_grow(): check calloc()'s result for NULL */
|
||||
tommy_arrayof_grow(&defer->packets, size + 1);
|
||||
if (tommy_arrayof_grow(&defer->packets, size + 1), 0)
|
||||
return NULL;
|
||||
|
||||
pkt = tommy_arrayof_ref(&defer->packets, size);
|
||||
}
|
||||
|
@ -192,7 +192,7 @@ void ConnectionsWindow::setupLogAllowedIp()
|
||||
fortManager()->applyConfImmediateFlags();
|
||||
});
|
||||
|
||||
m_cbLogAllowedIp->setVisible(false); // TODO
|
||||
m_cbLogAllowedIp->setVisible(false); // TODO: Collect allowed connections
|
||||
}
|
||||
|
||||
void ConnectionsWindow::setupLogBlockedIp()
|
||||
@ -239,7 +239,7 @@ void ConnectionsWindow::setupTableConnList()
|
||||
m_connListView->setSelectionMode(QAbstractItemView::ExtendedSelection);
|
||||
m_connListView->setSelectionBehavior(QAbstractItemView::SelectItems);
|
||||
|
||||
// TODO: Add ability to select the allowed/blocked mode from UI
|
||||
// TODO: Select the allowed/blocked mode from UI
|
||||
connListModel()->setBlockedMode(true);
|
||||
|
||||
m_connListView->setModel(connListModel());
|
||||
|
@ -445,7 +445,7 @@ void ApplicationsPage::setupGroupLogConn()
|
||||
ctrl()->setConfEdited(true);
|
||||
});
|
||||
|
||||
m_cbLogConn->setVisible(false); // TODO
|
||||
m_cbLogConn->setVisible(false); // TODO: Collect allowed connections
|
||||
}
|
||||
|
||||
void ApplicationsPage::setupGroupFragmentPacket()
|
||||
|
@ -66,7 +66,7 @@ bool Ip4Range::fromText(const QString &text)
|
||||
|
||||
bool Ip4Range::fromList(const StringViewList &list, int emptyNetMask, bool sort)
|
||||
{
|
||||
Q_UNUSED(sort); // TODO
|
||||
Q_UNUSED(sort); // TODO: Sort parsed IPv4 addresses
|
||||
|
||||
clear();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user