From 8cf7dad209fd97c1ab822ef183e8a74faceeb3d8 Mon Sep 17 00:00:00 2001 From: Rick Pasetto Date: Tue, 23 Feb 2010 17:36:25 -0800 Subject: =?UTF-8?q?FIX=20EXT-5680:=20Get=20rid=20of=20unnecessary=20code?= =?UTF-8?q?=20that=20formats=20the=20media=20item=20count=20Review=20#139?= =?UTF-8?q?=20The=20crash=20was=20happening=20because=20the=20German=20(lo?= =?UTF-8?q?cale=20"de")=20version=20of=20the=20format=20string=20had=20an?= =?UTF-8?q?=20=E2=80=8B%ls=20in=20it,=20which=20was=20causing=20the=20cras?= =?UTF-8?q?h.=20Getting=20rid=20of=20the=20widget=20and=20the=20string=20s?= =?UTF-8?q?ince=20it=20is=20no=20longer=20desired=20in=20the=20design.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- indra/newview/llpanelnearbymedia.cpp | 3 --- indra/newview/llpanelnearbymedia.h | 1 - .../skins/default/xui/de/panel_nearby_media.xml | 3 --- .../skins/default/xui/en/panel_nearby_media.xml | 23 ++++------------------ .../skins/default/xui/fr/panel_nearby_media.xml | 3 --- .../skins/default/xui/ja/panel_nearby_media.xml | 3 --- 6 files changed, 4 insertions(+), 32 deletions(-) (limited to 'indra/newview') diff --git a/indra/newview/llpanelnearbymedia.cpp b/indra/newview/llpanelnearbymedia.cpp index b73d7db770..3b5192b07f 100644 --- a/indra/newview/llpanelnearbymedia.cpp +++ b/indra/newview/llpanelnearbymedia.cpp @@ -135,7 +135,6 @@ BOOL LLPanelNearByMedia::postBuild() mMediaList = getChild("media_list"); mEnableAllCtrl = getChild("all_nearby_media_enable_btn"); mDisableAllCtrl = getChild("all_nearby_media_disable_btn"); - mItemCountText = getChild("media_item_count"); mShowCtrl = getChild("show_combo"); // Dynamic (selection-dependent) controls @@ -250,8 +249,6 @@ void LLPanelNearByMedia::draw() setShape(new_rect); } - mItemCountText->setValue(llformat(getString("media_item_count_format").c_str(), mMediaList->getItemCount())); - refreshList(); updateControls(); diff --git a/indra/newview/llpanelnearbymedia.h b/indra/newview/llpanelnearbymedia.h index 6fe724266b..551e2419c4 100644 --- a/indra/newview/llpanelnearbymedia.h +++ b/indra/newview/llpanelnearbymedia.h @@ -149,7 +149,6 @@ private: void onClickSelectedMediaUnzoom(); LLUICtrl* mNearbyMediaPanel; - LLTextBox* mItemCountText; LLScrollListCtrl* mMediaList; LLUICtrl* mEnableAllCtrl; LLUICtrl* mDisableAllCtrl; diff --git a/indra/newview/skins/default/xui/de/panel_nearby_media.xml b/indra/newview/skins/default/xui/de/panel_nearby_media.xml index ec2ad42fa1..2d97a25fa9 100644 --- a/indra/newview/skins/default/xui/de/panel_nearby_media.xml +++ b/indra/newview/skins/default/xui/de/panel_nearby_media.xml @@ -1,8 +1,5 @@ - - (%ls Medien-Objekte) - <leer> diff --git a/indra/newview/skins/default/xui/en/panel_nearby_media.xml b/indra/newview/skins/default/xui/en/panel_nearby_media.xml index 0f911f789e..aba1589eae 100644 --- a/indra/newview/skins/default/xui/en/panel_nearby_media.xml +++ b/indra/newview/skins/default/xui/en/panel_nearby_media.xml @@ -2,23 +2,22 @@ - (%ld media items) <empty> Parcel Streaming Media Parcel Streaming Audio (playing) Nearby Media - - - (%ld articles de média) - <vide> diff --git a/indra/newview/skins/default/xui/ja/panel_nearby_media.xml b/indra/newview/skins/default/xui/ja/panel_nearby_media.xml index ca93d46e4d..a670975dda 100644 --- a/indra/newview/skins/default/xui/ja/panel_nearby_media.xml +++ b/indra/newview/skins/default/xui/ja/panel_nearby_media.xml @@ -1,8 +1,5 @@ - - (メディアアイテム %ld ) - <空> -- cgit v1.2.3