When customizing builtin recipes download the latest version of the recipe to customize instead of using the possibly out of date bundled version

This commit is contained in:
Kovid Goyal 2012-06-15 21:38:32 +05:30
parent ca03c63fcd
commit eed76c2e36

View File

@ -312,7 +312,7 @@ class %(classname)s(%(base_class)s):
item = items[-1] item = items[-1]
id_ = unicode(item.data(Qt.UserRole).toString()) id_ = unicode(item.data(Qt.UserRole).toString())
title = unicode(item.data(Qt.DisplayRole).toString()).rpartition(' [')[0] title = unicode(item.data(Qt.DisplayRole).toString()).rpartition(' [')[0]
profile = get_builtin_recipe_by_id(id_) profile = get_builtin_recipe_by_id(id_, download_recipe=True)
if profile is None: if profile is None:
raise Exception('Something weird happened') raise Exception('Something weird happened')