diff options
Diffstat (limited to 'linden/indra/newview/primbackup.cpp')
-rw-r--r-- | linden/indra/newview/primbackup.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/linden/indra/newview/primbackup.cpp b/linden/indra/newview/primbackup.cpp index 6d9d73f..9c3ab7f 100644 --- a/linden/indra/newview/primbackup.cpp +++ b/linden/indra/newview/primbackup.cpp | |||
@@ -472,6 +472,10 @@ void PrimBackup::exportWorker(void *userdata) | |||
472 | llwarns << "Incorrect permission to export" << llendl; | 472 | llwarns << "Incorrect permission to export" << llendl; |
473 | PrimBackup::getInstance()->mExportState = EXPORT_FAILED; | 473 | PrimBackup::getInstance()->mExportState = EXPORT_FAILED; |
474 | LLSelectMgr::getInstance()->getSelection()->unref(); | 474 | LLSelectMgr::getInstance()->getSelection()->unref(); |
475 | gIdleCallbacks.deleteFunction(exportWorker); | ||
476 | LLNotifications::instance().add("ExportFailed"); | ||
477 | PrimBackup::getInstance()->close(); | ||
478 | return; | ||
475 | } | 479 | } |
476 | } | 480 | } |
477 | break; | 481 | break; |
@@ -581,10 +585,7 @@ void PrimBackup::exportWorker(void *userdata) | |||
581 | break; | 585 | break; |
582 | 586 | ||
583 | case EXPORT_FAILED: | 587 | case EXPORT_FAILED: |
584 | gIdleCallbacks.deleteFunction(exportWorker); | ||
585 | llwarns << "Export process aborted." << llendl; | 588 | llwarns << "Export process aborted." << llendl; |
586 | LLNotifications::instance().add("ExportFailed"); | ||
587 | PrimBackup::getInstance()->close(); | ||
588 | break; | 589 | break; |
589 | } | 590 | } |
590 | } | 591 | } |
@@ -682,6 +683,10 @@ LLSD PrimBackup::primsToLLSD(LLViewerObject::child_list_t child_list, bool is_at | |||
682 | { | 683 | { |
683 | llwarns << "Incorrect permission to export a sculpt texture." << llendl; | 684 | llwarns << "Incorrect permission to export a sculpt texture." << llendl; |
684 | PrimBackup::getInstance()->mExportState = EXPORT_FAILED; | 685 | PrimBackup::getInstance()->mExportState = EXPORT_FAILED; |
686 | gIdleCallbacks.deleteFunction(exportWorker); | ||
687 | LLNotifications::instance().add("ExportFailed"); | ||
688 | PrimBackup::getInstance()->close(); | ||
689 | return LLSD(); | ||
685 | } | 690 | } |
686 | } | 691 | } |
687 | 692 | ||