fixes #2538 always use normal 64x64 icon for the editor dialog even if object is locked

This commit is contained in:
Vadim Kurland
2011-07-07 18:25:18 -07:00
parent b3215ddafb
commit 3cd58db242
+2 -1
View File
@@ -503,7 +503,8 @@ void doSetObjectIcon(FWObject *obj, QPixmap *pm, int icon_size)
default: icn_sfx = "icon"; break;
}
if (obj->getRO())
// note that we do not have "locked" version of large icons
if (obj->getRO() && icon_size != 2)
icn_alias = ":/Icons/lock";
else
{