summaryrefslogtreecommitdiff
path: root/indra/newview/llfloatercreatelandmark.cpp
diff options
context:
space:
mode:
authorAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-06-30 23:19:47 +0300
committerAndrey Kleshchev <andreykproductengine@lindenlab.com>2021-06-30 23:24:27 +0300
commitefc8b268a2686a86c0975b4b3f67ef821a416d98 (patch)
treec2b0a2b5417a889d68592670b151092991cb8906 /indra/newview/llfloatercreatelandmark.cpp
parent21f70785d7d8cf5e736ab03a944be575b4f68277 (diff)
SL-15434 Change default landmark destination
Diffstat (limited to 'indra/newview/llfloatercreatelandmark.cpp')
-rw-r--r--indra/newview/llfloatercreatelandmark.cpp8
1 files changed, 6 insertions, 2 deletions
diff --git a/indra/newview/llfloatercreatelandmark.cpp b/indra/newview/llfloatercreatelandmark.cpp
index eb93a6a75a..813b7ceec8 100644
--- a/indra/newview/llfloatercreatelandmark.cpp
+++ b/indra/newview/llfloatercreatelandmark.cpp
@@ -143,7 +143,7 @@ void LLFloaterCreateLandmark::setLandmarkInfo(const LLUUID &folder_id)
mLandmarkTitleEditor->setText(name);
}
- LLLandmarkActions::createLandmarkHere(name, "", folder_id.notNull() ? folder_id : gInventory.findCategoryUUIDForType(LLFolderType::FT_FAVORITE));
+ LLLandmarkActions::createLandmarkHere(name, "", folder_id.notNull() ? folder_id : mLandmarksID);
}
bool cmp_folders(const folder_pair_t& left, const folder_pair_t& right)
@@ -202,6 +202,10 @@ void LLFloaterCreateLandmark::populateFoldersList(const LLUUID &folder_id)
{
mFolderCombo->setCurrentByID(folder_id);
}
+ else
+ {
+ mFolderCombo->setCurrentByID(mLandmarksID);
+ }
}
void LLFloaterCreateLandmark::onCreateFolderClicked()
@@ -320,4 +324,4 @@ void LLFloaterCreateLandmark::setItem(const uuid_set_t& items)
}
}
}
-} \ No newline at end of file
+}