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:
parent
58f7142e4a
commit
780ae6b0af
@ -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
|
||||
|
||||
@ -67,6 +67,7 @@ public:
|
||||
|
||||
virtual void redo();
|
||||
virtual void undo();
|
||||
virtual void notify();
|
||||
};
|
||||
|
||||
/********************************************************
|
||||
|
||||
@ -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()
|
||||
{
|
||||
}
|
||||
|
||||
@ -64,6 +64,7 @@ public:
|
||||
|
||||
virtual void redo();
|
||||
virtual void undo();
|
||||
virtual void notify();
|
||||
};
|
||||
|
||||
|
||||
|
||||
@ -119,6 +119,8 @@ void FWWindow::openEditorPanel()
|
||||
|
||||
void FWWindow::openEditor(FWObject *obj)
|
||||
{
|
||||
if (FWBTree().isSystem(obj)) return;
|
||||
|
||||
attachEditorToProjectPanel(activeProject());
|
||||
|
||||
/*
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user