API change of AIFilePicker.
Call AIFilePicker::create() instead of new AIFilePicker. Renamed deleteMe() to kill() and bs_deleted to bs_killed. Only default to auto destruct when created with create(true), otherwise kill() has to be called explicitely.
This commit is contained in:
@@ -341,7 +341,7 @@ void LLObjectBackup::exportObject()
|
||||
mThisGroup.clear();
|
||||
|
||||
// Open the file save dialog
|
||||
AIFilePicker* filepicker = new AIFilePicker;
|
||||
AIFilePicker* filepicker = AIFilePicker::create();
|
||||
filepicker->open("", FFSAVE_XML);
|
||||
filepicker->run(boost::bind(&LLObjectBackup::exportObject_continued, this, filepicker));
|
||||
}
|
||||
@@ -739,7 +739,7 @@ void LLObjectBackup::importObject(bool upload)
|
||||
mRetexture = upload;
|
||||
|
||||
// Open the file open dialog
|
||||
AIFilePicker* filepicker = new AIFilePicker;
|
||||
AIFilePicker* filepicker = AIFilePicker::create();
|
||||
filepicker->open(FFLOAD_XML, "", "import");
|
||||
filepicker->run(boost::bind(&LLObjectBackup::importObject_continued, this, filepicker));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user