1
0
mirror of https://github.com/fwbuilder/fwbuilder synced 2026-03-24 20:27:22 +01:00

Don't open editor for system folder after adding/deleting user folder.

Fixes #2530
This commit is contained in:
Theron Tock 2011-06-27 13:32:40 -07:00
parent 58f7142e4a
commit 780ae6b0af
5 changed files with 16 additions and 0 deletions

View File

@ -254,6 +254,11 @@ void FWCmdAddUserFolder::undo()
m_userFolder));
}
/* We don't want to display the system folder after we add a user
folder, so we just swallow the notify. */
void FWCmdAddUserFolder::notify()
{
}
/********************************************************
* FWCmdAddLibrary

View File

@ -67,6 +67,7 @@ public:
virtual void redo();
virtual void undo();
virtual void notify();
};
/********************************************************

View File

@ -174,3 +174,10 @@ void FWCmdRemoveUserFolder::undo()
new addUserFolderEvent(fName, obj->getId(),
m_userFolder));
}
/* We don't want to display the system folder after we remove a user
folder, so we just swallow the notify. */
void FWCmdRemoveUserFolder::notify()
{
}

View File

@ -64,6 +64,7 @@ public:
virtual void redo();
virtual void undo();
virtual void notify();
};

View File

@ -119,6 +119,8 @@ void FWWindow::openEditorPanel()
void FWWindow::openEditor(FWObject *obj)
{
if (FWBTree().isSystem(obj)) return;
attachEditorToProjectPanel(activeProject());
/*