Helper functions for access/ban lists are not really needed anymore - consolidate
parent
067bea25e0
commit
94e4ef77f4
|
|
@ -3297,7 +3297,7 @@ void LLPanelLandAccess::onClickExportList(LLNameListCtrl* list, const std::strin
|
|||
LLNotificationsUtil::add("GenericAlert", args);
|
||||
return;
|
||||
}
|
||||
exportList(list, filename);
|
||||
LLFilePickerReplyThread::startPicker(boost::bind(&LLPanelLandAccess::exportListCallback, this, list, _1), LLFilePicker::FFSAVE_CSV, filename);
|
||||
}
|
||||
|
||||
void LLPanelLandAccess::onClickExportAccess()
|
||||
|
|
@ -3310,14 +3310,6 @@ void LLPanelLandAccess::onClickExportBanned()
|
|||
onClickExportList(mListBanned, "land_banned_list.csv");
|
||||
}
|
||||
|
||||
void LLPanelLandAccess::exportList(LLNameListCtrl* list, const std::string& default_filename)
|
||||
{
|
||||
if (list)
|
||||
{
|
||||
LLFilePickerReplyThread::startPicker(boost::bind(&LLPanelLandAccess::exportListCallback, this, list, _1), LLFilePicker::FFSAVE_CSV, default_filename);
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelLandAccess::exportListCallback(LLNameListCtrl* list, const std::vector<std::string>& filenames)
|
||||
{
|
||||
if (filenames.empty())
|
||||
|
|
|
|||
|
|
@ -409,7 +409,6 @@ public:
|
|||
void onClickExportAccess();
|
||||
void onClickExportBanned();
|
||||
void onClickExportList(LLNameListCtrl* list, const std::string& filename);
|
||||
void exportList(LLNameListCtrl* list, const std::string& default_filename);
|
||||
void exportListCallback(LLNameListCtrl* list, const std::vector<std::string>& filenames);
|
||||
// </FS:PP> Ban and access lists export
|
||||
|
||||
|
|
|
|||
|
|
@ -4631,7 +4631,7 @@ void LLPanelEstateAccess::onClickExportList(LLNameListCtrl* list, const std::str
|
|||
LLNotificationsUtil::add("GenericAlert", args);
|
||||
return;
|
||||
}
|
||||
exportList(list, filename);
|
||||
LLFilePickerReplyThread::startPicker(boost::bind(&LLPanelEstateAccess::exportListCallback, this, list, _1), LLFilePicker::FFSAVE_CSV, filename);
|
||||
}
|
||||
|
||||
void LLPanelEstateAccess::onClickExportEstateManagerList()
|
||||
|
|
@ -4654,14 +4654,6 @@ void LLPanelEstateAccess::onClickExportBannedList()
|
|||
onClickExportList(getChild<LLNameListCtrl>("banned_avatar_name_list"), "estate_banned_residents.csv");
|
||||
}
|
||||
|
||||
void LLPanelEstateAccess::exportList(LLNameListCtrl* list, const std::string& default_filename)
|
||||
{
|
||||
if (list)
|
||||
{
|
||||
LLFilePickerReplyThread::startPicker(boost::bind(&LLPanelEstateAccess::exportListCallback, this, list, _1), LLFilePicker::FFSAVE_CSV, default_filename);
|
||||
}
|
||||
}
|
||||
|
||||
void LLPanelEstateAccess::exportListCallback(LLNameListCtrl* list, const std::vector<std::string>& filenames)
|
||||
{
|
||||
if (filenames.empty())
|
||||
|
|
|
|||
|
|
@ -514,7 +514,6 @@ public:
|
|||
void onClickExportAllowedGroupList();
|
||||
void onClickExportBannedList();
|
||||
void onClickExportList(LLNameListCtrl* list, const std::string& filename);
|
||||
void exportList(LLNameListCtrl* list, const std::string& default_filename);
|
||||
void exportListCallback(LLNameListCtrl* list, const std::vector<std::string>& filenames);
|
||||
// </FS:PP> Ban and access lists export
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue