mirror of
https://github.com/vcmi/vcmi.git
synced 2025-11-06 09:09:40 +02:00
Fixed #1064.
This commit is contained in:
@@ -105,6 +105,14 @@ SettingsListener::SettingsListener(SettingsStorage &_parent, const std::vector<s
|
||||
parent.listeners.insert(this);
|
||||
}
|
||||
|
||||
SettingsListener::SettingsListener(const SettingsListener &sl):
|
||||
parent(sl.parent),
|
||||
path(sl.path),
|
||||
callback(sl.callback)
|
||||
{
|
||||
parent.listeners.insert(this);
|
||||
}
|
||||
|
||||
SettingsListener::~SettingsListener()
|
||||
{
|
||||
parent.listeners.erase(this);
|
||||
|
||||
@@ -71,6 +71,7 @@ class SettingsListener
|
||||
void nodeInvalidated(const std::vector<std::string> changedPath);
|
||||
|
||||
public:
|
||||
SettingsListener(const SettingsListener &sl);
|
||||
~SettingsListener();
|
||||
|
||||
// assign callback function
|
||||
|
||||
Reference in New Issue
Block a user