mirror of
https://github.com/vcmi/vcmi.git
synced 2025-04-15 11:46:56 +02:00
Fixed #2022 storing event in map editor
Fixing issue "Event message isn't stored #2022" by adding message in Pandora setProperty ( cause CGEvent inherits CGPandoraBox)
This commit is contained in:
parent
b3207f3465
commit
bfed62d3a2
@ -472,6 +472,9 @@ void Inspector::setProperty(CGLighthouse * o, const QString & key, const QVarian
|
|||||||
void Inspector::setProperty(CGPandoraBox * o, const QString & key, const QVariant & value)
|
void Inspector::setProperty(CGPandoraBox * o, const QString & key, const QVariant & value)
|
||||||
{
|
{
|
||||||
if(!o) return;
|
if(!o) return;
|
||||||
|
|
||||||
|
if(key == "Message")
|
||||||
|
o->message = value.toString().toStdString();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Inspector::setProperty(CGEvent * o, const QString & key, const QVariant & value)
|
void Inspector::setProperty(CGEvent * o, const QString & key, const QVariant & value)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user