summaryrefslogtreecommitdiff
path: root/indra/newview/lldaycyclemanager.cpp
diff options
context:
space:
mode:
authorVadim ProductEngine <vsavchuk@productengine.com>2011-06-01 18:26:36 +0300
committerVadim ProductEngine <vsavchuk@productengine.com>2011-06-01 18:26:36 +0300
commit995a006b58f2be1d7236b32be3570b6d7250013b (patch)
tree475c135fca3d5c7ff89ecb70ead0a0a4ecccc3da /indra/newview/lldaycyclemanager.cpp
parent6e2c05a512f498fe10aee307308e0365536f9819 (diff)
STORM-1253 WIP Update UI when a day cycle gets added or deleted.
Diffstat (limited to 'indra/newview/lldaycyclemanager.cpp')
-rw-r--r--indra/newview/lldaycyclemanager.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/indra/newview/lldaycyclemanager.cpp b/indra/newview/lldaycyclemanager.cpp
index 0cd23f5202..960879c32c 100644
--- a/indra/newview/lldaycyclemanager.cpp
+++ b/indra/newview/lldaycyclemanager.cpp
@@ -82,6 +82,7 @@ bool LLDayCycleManager::savePreset(const std::string& name, const LLSD& data)
// Add it to our map.
addPreset(name, data);
+ mModifySignal();
return true;
}
@@ -95,6 +96,7 @@ bool LLDayCycleManager::deletePreset(const std::string& name)
if (gDirUtilp->fileExists(path))
{
gDirUtilp->deleteFilesInDir(getUserDir(), filename);
+ mModifySignal();
return true;
}
@@ -102,6 +104,11 @@ bool LLDayCycleManager::deletePreset(const std::string& name)
return false;
}
+boost::signals2::connection LLDayCycleManager::setModifyCallback(const modify_signal_t::slot_type& cb)
+{
+ return mModifySignal.connect(cb);
+}
+
// virtual
void LLDayCycleManager::initSingleton()
{