mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-10 04:57:00 -04:00
- no longer try to draw fields with huge or negative size
- download icons of packages git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@799 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -217,6 +217,10 @@ IMPLEMENT_REFLECTION_NO_SCRIPT(PackageDescription) {
|
||||
REFLECT_N("depends ons", dependencies);
|
||||
}
|
||||
|
||||
void PackageDescription::merge(const PackageDescription& p2) {
|
||||
if (!icon.Ok() && !icon_url) icon = p2.icon;
|
||||
}
|
||||
|
||||
IMPLEMENT_REFLECTION_NO_SCRIPT(InstallerDescription) {
|
||||
REFLECT(packages);
|
||||
}
|
||||
@@ -290,6 +294,7 @@ bool InstallablePackage::has(PackageAction act) const {
|
||||
void InstallablePackage::merge(const InstallablePackage& p) {
|
||||
if (!installed) installed = p.installed;
|
||||
if (!installer) {
|
||||
p.description->merge(*description);
|
||||
description = p.description; // installer has new description
|
||||
installer = p.installer;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user