diff --git a/indra/newview/app_settings/settings.xml b/indra/newview/app_settings/settings.xml index ebdb8aa2c5..1cffa03c06 100644 --- a/indra/newview/app_settings/settings.xml +++ b/indra/newview/app_settings/settings.xml @@ -5437,6 +5437,17 @@ Value 0 + FSUnlinkConfirmEnabled + + Comment + Unlink confirmation dialog functionality enabled? + Persist + 1 + Type + Boolean + Value + 1 + MinObjectsForUnlinkConfirm Comment diff --git a/indra/newview/llselectmgr.cpp b/indra/newview/llselectmgr.cpp index 4d0132f81a..7dcc395794 100755 --- a/indra/newview/llselectmgr.cpp +++ b/indra/newview/llselectmgr.cpp @@ -654,15 +654,25 @@ bool LLSelectMgr::linkObjects() bool LLSelectMgr::unlinkObjects() { - S32 min_objects_for_confirm = gSavedSettings.getS32("MinObjectsForUnlinkConfirm"); - S32 unlink_object_count = mSelectedObjects->getObjectCount(); // clears out nodes with NULL objects - if (unlink_object_count >= min_objects_for_confirm - && unlink_object_count > mSelectedObjects->getRootObjectCount()) + + // + if (gSavedSettings.getBOOL("FSUnlinkConfirmEnabled")) { - // total count > root count means that there are childer inside and that there are linksets that will be unlinked - LLNotificationsUtil::add("ConfirmUnlink", LLSD(), LLSD(), boost::bind(&LLSelectMgr::confirmUnlinkObjects, this, _1, _2)); - return true; + // + + S32 min_objects_for_confirm = gSavedSettings.getS32("MinObjectsForUnlinkConfirm"); + S32 unlink_object_count = mSelectedObjects->getObjectCount(); // clears out nodes with NULL objects + if (unlink_object_count >= min_objects_for_confirm + && unlink_object_count > mSelectedObjects->getRootObjectCount()) + { + // total count > root count means that there are childer inside and that there are linksets that will be unlinked + LLNotificationsUtil::add("ConfirmUnlink", LLSD(), LLSD(), boost::bind(&LLSelectMgr::confirmUnlinkObjects, this, _1, _2)); + return true; + } + + // } + // LLSelectMgr::getInstance()->sendDelink(); return true; diff --git a/indra/newview/skins/default/xui/de/notifications.xml b/indra/newview/skins/default/xui/de/notifications.xml index 92f5adb1a4..779635c9dd 100755 --- a/indra/newview/skins/default/xui/de/notifications.xml +++ b/indra/newview/skins/default/xui/de/notifications.xml @@ -2406,7 +2406,7 @@ Diese Aktion kann nicht rückgängig gemacht werden. Soll das ausgewählte Objekt wirklich getrennt werden? - + Wählen Sie eine Missbrauchskategorie aus. diff --git a/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml b/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml index 6ff3c02ad8..74ff1171f4 100644 --- a/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml +++ b/indra/newview/skins/default/xui/de/panel_preferences_firestorm.xml @@ -224,9 +224,7 @@ Grad beschränken, falls „An Raster ausrichten“ deakt. - - Trennen von Objekten bestehend aus mindestens - + Einzelobjekten bestätigen diff --git a/indra/newview/skins/default/xui/en/notifications.xml b/indra/newview/skins/default/xui/en/notifications.xml index e118562016..1abad2477a 100755 --- a/indra/newview/skins/default/xui/en/notifications.xml +++ b/indra/newview/skins/default/xui/en/notifications.xml @@ -6074,8 +6074,7 @@ You cannot undo this action. Do you really want to unlink the selected object? confirm diff --git a/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml b/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml index 4f3d350537..5434bd450f 100644 --- a/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml +++ b/indra/newview/skins/default/xui/en/panel_preferences_firestorm.xml @@ -1539,16 +1539,17 @@ width="270"> degrees, when not using 'snap to grid' - - Show unlink confirmation dialog if linkset has minimum - + label="Show unlink confirmation dialog if linkset has minimum" + name="FSUnlinkConfirmEnabled" + control_name="FSUnlinkConfirmEnabled" + width="325"/> 選択したオブジェクトのリンクを本当に解除しますか? - +