From 8a0be4edeb4b6b8165c013c94b93ef5f865e8130 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Tue, 12 Aug 2008 14:49:30 +0000 Subject: [PATCH] * I misunderstood the previous of adding fPath.Path() to the message. It was meant to be able to tell which monitor the message came from. So I added it back in. Since I used "path" already for the entry, I renamed the field to "watched_path". No code was using it yet, so this should be ok and the purpose more clear anyways. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26945 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/storage/PathMonitor.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/kits/storage/PathMonitor.cpp b/src/kits/storage/PathMonitor.cpp index 9f9cdb2875..ac5ecc249b 100644 --- a/src/kits/storage/PathMonitor.cpp +++ b/src/kits/storage/PathMonitor.cpp @@ -644,6 +644,10 @@ PathHandler::_NotifyTarget(BMessage* message, const node_ref& nodeRef) const } } + // This is in case the target is interested in figuring out which + // BPathMonitor::StartWatching() call the message is resulting from. + update.AddString("watched_path", fPath.Path()); + fTarget.SendMessage(&update); }