summaryrefslogtreecommitdiff
path: root/src/Instance.cxx
diff options
context:
space:
mode:
authorMax Kellermann <max@musicpd.org>2020-01-20 13:28:00 +0100
committerMax Kellermann <max@musicpd.org>2020-01-20 13:28:00 +0100
commit6fcea2d484148c741c3e8870632892deca4c49c9 (patch)
tree93f2bb92b5778cfbe32240d40cfd800b40437ac4 /src/Instance.cxx
parent5d597a3646ccc91899641e586daa7c290d845c5f (diff)
Instance: move code to OnStateModified()
Diffstat (limited to 'src/Instance.cxx')
-rw-r--r--src/Instance.cxx7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/Instance.cxx b/src/Instance.cxx
index e0ae30dfe..a8ec8e3ae 100644
--- a/src/Instance.cxx
+++ b/src/Instance.cxx
@@ -70,6 +70,13 @@ Instance::~Instance() noexcept
#endif
}
+void
+Instance::OnStateModified() noexcept
+{
+ if (state_file)
+ state_file->CheckModified();
+}
+
Partition *
Instance::FindPartition(const char *name) noexcept
{