Bug fix: circumvent using LLs notify system.
Can't use LLs LLFolderViewItem::rename from LLInventoryPanel::modelChanged because it's nonrobust spaghetti code and causes randomly sized loops. Also cleaned up the number of unused nameOrDescriptionChanged functions introduced in a previous commit.
This commit is contained in:
@@ -123,7 +123,6 @@ public:
|
||||
virtual void selectItem() {}
|
||||
virtual BOOL isItemRenameable() const;
|
||||
virtual BOOL renameItem(const std::string& new_name);
|
||||
virtual void descriptionChanged(void) const;
|
||||
virtual BOOL isItemMovable() const;
|
||||
virtual BOOL isItemRemovable() const;
|
||||
virtual BOOL removeItem();
|
||||
@@ -431,11 +430,6 @@ BOOL LLTaskInvFVBridge::renameItem(const std::string& new_name)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
void LLTaskInvFVBridge::descriptionChanged(void) const
|
||||
{
|
||||
// Nothing to do.
|
||||
}
|
||||
|
||||
BOOL LLTaskInvFVBridge::isItemMovable() const
|
||||
{
|
||||
//LLViewerObject* object = gObjectList.findObject(mPanel->getTaskUUID());
|
||||
@@ -820,7 +814,6 @@ public:
|
||||
virtual BOOL isItemRenameable() const;
|
||||
// virtual BOOL isItemCopyable() const { return FALSE; }
|
||||
virtual BOOL renameItem(const std::string& new_name);
|
||||
virtual void descriptionChanged(void) const;
|
||||
virtual BOOL isItemRemovable() const;
|
||||
virtual void buildContextMenu(LLMenuGL& menu, U32 flags);
|
||||
virtual BOOL hasChildren() const;
|
||||
@@ -861,12 +854,6 @@ BOOL LLTaskCategoryBridge::renameItem(const std::string& new_name)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void LLTaskCategoryBridge::descriptionChanged(void) const
|
||||
{
|
||||
// A category has no description.
|
||||
llerrs << "Calling LLTaskCategoryBridge::descriptionChanged" << llendl;
|
||||
}
|
||||
|
||||
BOOL LLTaskCategoryBridge::isItemRemovable() const
|
||||
{
|
||||
return FALSE;
|
||||
@@ -1182,7 +1169,6 @@ public:
|
||||
|
||||
virtual BOOL isItemRenameable() const;
|
||||
virtual BOOL renameItem(const std::string& new_name);
|
||||
virtual void descriptionChanged(void) const;
|
||||
};
|
||||
|
||||
BOOL LLTaskCallingCardBridge::isItemRenameable() const
|
||||
@@ -1195,11 +1181,6 @@ BOOL LLTaskCallingCardBridge::renameItem(const std::string& new_name)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
void LLTaskCallingCardBridge::descriptionChanged(void) const
|
||||
{
|
||||
// Nothing to do.
|
||||
}
|
||||
|
||||
///----------------------------------------------------------------------------
|
||||
/// Class LLTaskScriptBridge
|
||||
///----------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user