summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorandreykproductengine <andreykproductengine@lindenlab.com>2019-02-22 23:24:27 +0200
committerandreykproductengine <andreykproductengine@lindenlab.com>2019-02-22 23:24:27 +0200
commitd60925e3b4c49f6203be01a56b584c70da8eb506 (patch)
treec1cf94a40395ebec68ab55422ee96543004bbb36
parent9a66e4a9dec4ae6abbd9048c7cacd3480b513cbc (diff)
SL-1945 Show track picker even if there is only one track to choose from
-rw-r--r--indra/newview/llfloatereditextdaycycle.cpp12
1 files changed, 1 insertions, 11 deletions
diff --git a/indra/newview/llfloatereditextdaycycle.cpp b/indra/newview/llfloatereditextdaycycle.cpp
index 3b148fa89e..18f22bf2d2 100644
--- a/indra/newview/llfloatereditextdaycycle.cpp
+++ b/indra/newview/llfloatereditextdaycycle.cpp
@@ -838,20 +838,10 @@ void LLFloaterEditExtDayCycle::onCloneTrack()
args.append(track);
}
- if (populated_counter > 1)
+ if (populated_counter > 0)
{
doOpenTrackFloater(args);
}
- else if (populated_counter > 0)
- {
- for (U32 i = 1; i < LLSettingsDay::TRACK_MAX; i++)
- {
- if ((!mEditDay->isTrackEmpty(i)) && (i != mCurrentTrack))
- {
- onPickerCommitTrackId(i);
- }
- }
- }
else
{
// Should not happen