mirror of
https://github.com/vcmi/vcmi.git
synced 2024-12-24 22:14:36 +02:00
Fixed #1064.
This commit is contained in:
parent
0ca9f64573
commit
ea4841045f
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user