mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-25 04:37:22 +01:00
fixes #797
This commit is contained in:
parent
956c7debfa
commit
cb28e74d16
@ -316,7 +316,6 @@ public:
|
||||
libfwbuilder::FWObject *obj);
|
||||
|
||||
void updateLibColor(libfwbuilder::FWObject *lib);
|
||||
void updateLibName(libfwbuilder::FWObject *lib);
|
||||
|
||||
void autoRenameChildren(libfwbuilder::FWObject *obj,
|
||||
const QString &oldName,
|
||||
|
||||
@ -276,19 +276,6 @@ void ObjectManipulator::updateLibColor(FWObject *lib)
|
||||
}
|
||||
}
|
||||
|
||||
void ObjectManipulator::updateLibName(FWObject *lib)
|
||||
{
|
||||
int oldidx = getIdxForLib(lib);
|
||||
QTreeWidget *objTreeView = idxToTrees[oldidx];
|
||||
QString newlibname = QString::fromUtf8(lib->getName().c_str());
|
||||
|
||||
if (m_objectManipulator->libs->itemText(oldidx) != newlibname)
|
||||
{
|
||||
removeLib(oldidx);
|
||||
addLib(lib);
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
* Update tree item for the given object, including its name and brief summary
|
||||
* of properties. If @subtree=true, do the same for all its children as well.
|
||||
|
||||
@ -164,7 +164,6 @@ bool ProjectPanel::event(QEvent *event)
|
||||
|
||||
if (Library::cast(obj))
|
||||
{
|
||||
m_panel->om->updateLibName(obj);
|
||||
m_panel->om->updateLibColor(obj);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user