1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-22 11:17:31 +01:00

fixed #1776 once new firewall is created, automatically open its Policy

This commit is contained in:
Vadim Kurland 2010-10-04 01:52:22 +00:00
parent ad6cfe82ea
commit e162a0c6b3
4 changed files with 19 additions and 4 deletions

View File

@ -1 +1 @@
#define BUILD_NUM 3303
#define BUILD_NUM 3304

View File

@ -1,5 +1,8 @@
2010-10-03 Vadim Kurland <vadim@vk.crocodile.org>
* ObjectManipulator_create_new.cpp (ObjectManipulator::createNewObject):
fixed #1776 once new firewall is created, automatically open its Policy
* FWWindow.cpp (FWWindow::showIntroDialog): fixed #1765, #1779
Move quick start guide to the web site. The "Quick Start Guide" is
now part of the web site and the GUI only shows a

View File

@ -180,7 +180,8 @@ void FWCmdAddObject::redo()
mw, new insertObjectInTreeEvent(filename, grp->getId(), member->getId()));
QCoreApplication::postEvent(
mw, new updateObjectAndSubtreeImmediatelyEvent(filename, grp->getId()));
mw, new updateObjectAndSubtreeImmediatelyEvent(
filename, grp->getId()));
}
// when user clicks in the undo stack window, the program executes
@ -203,8 +204,10 @@ void FWCmdAddObject::redo()
// changes when editor opens
//if (mw->isEditorVisible())
QCoreApplication::postEvent(mw, new openObjectInEditorEvent(filename, member->getId()));
QCoreApplication::postEvent(mw, new showObjectInTreeEvent(filename, member->getId()));
QCoreApplication::postEvent(mw, new openObjectInEditorEvent(
filename, member->getId()));
QCoreApplication::postEvent(mw, new showObjectInTreeEvent(
filename, member->getId()));
}
void FWCmdAddObject::notify()

View File

@ -251,6 +251,15 @@ void ObjectManipulator::createNewObject()
m_project, new expandObjectInTreeEvent(
m_project->getFileName(), new_obj->getId()));
if (Firewall::cast(new_obj)!=NULL) // Cluster too
{
FWObject *ruleset = new_obj->getFirstByType(Policy::TYPENAME);
if (ruleset)
QCoreApplication::postEvent(
m_project, new openRulesetEvent(
m_project->getFileName(), ruleset->getId()));
}
m_project->undoStack->push(macro);
}