Bundle Editor: Set bundle item’s name as document’s custom name

This affects the name used for backup files and TM_DISPLAYNAME which could be used by some commands invoked from the bundle editor.
This commit is contained in:
Allan Odgaard
2016-06-17 11:46:04 +02:00
parent 267ad147cd
commit 5d4a14e14b

View File

@@ -797,7 +797,7 @@ static NSMutableDictionary* DictionaryForPropertyList (plist::dictionary_t const
}
bundleItemContent = bundleItemContent ?: document::from_content("");
bundleItemContent->set_custom_name(bundle item»");
bundleItemContent->set_custom_name(bundleItem->name());
bundleItemContent->add_callback(documentCallback);
[documentView setDocument:bundleItemContent];