mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-17 18:39:07 +02:00
fixing unit test
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
2010-03-20 vadim <vadim@vk.crocodile.org>
|
||||
|
||||
* FWWindow.cpp (FWWindow::updateGlobalToolbar): additional check
|
||||
for condition that happens in unit test
|
||||
|
||||
2010-03-19 vadim <vadim@vk.crocodile.org>
|
||||
|
||||
* FWWindow.cpp (FWWindow::updateGlobalToolbar): fixed SF bug 2973137
|
||||
|
||||
@@ -1458,7 +1458,7 @@ void FWWindow::updateGlobalToolbar()
|
||||
if (pp)
|
||||
{
|
||||
list<Firewall *> fws;
|
||||
pp->findAllFirewalls(fws);
|
||||
if (pp->db() != NULL) pp->findAllFirewalls(fws);
|
||||
setCompileAndInstallActionsEnabled(fws.size() != 0);
|
||||
} else
|
||||
setCompileAndInstallActionsEnabled(false);
|
||||
|
||||
Reference in New Issue
Block a user