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:
parent
ad6cfe82ea
commit
e162a0c6b3
@ -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
|
||||
|
||||
@ -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()
|
||||
|
||||
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user