FIRE-11813: Proper fix for pure virtual function call crash in OXP export floater
parent
64355d73f6
commit
dd82169fd2
|
|
@ -32,7 +32,6 @@
|
|||
|
||||
#include "lfsimfeaturehandler.h"
|
||||
#include "llagent.h"
|
||||
//#include "llagentconstants.h"
|
||||
#include "llagentdata.h"
|
||||
#include "llavatarnamecache.h"
|
||||
#include "llbufferstream.h"
|
||||
|
|
@ -212,6 +211,15 @@ FSFloaterObjectExport::~FSFloaterObjectExport()
|
|||
{
|
||||
gIdleCallbacks.deleteFunction(FSFloaterObjectExport::onIdle, this);
|
||||
}
|
||||
|
||||
for (const auto& object_id : mInventoryRequests)
|
||||
{
|
||||
LLViewerObject* object = gObjectList.findObject(object_id);
|
||||
if (object)
|
||||
{
|
||||
object->removeInventoryListener(this);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
BOOL FSFloaterObjectExport::postBuild()
|
||||
|
|
@ -1098,7 +1106,7 @@ void FSFloaterObjectExport::onExportFileSelected(const std::vector<std::string>&
|
|||
if (!exportSelection())
|
||||
{
|
||||
LLNotificationsUtil::add("ExportFailed");
|
||||
//closeFloater();
|
||||
closeFloater();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue