StateWatcher now only sends the update message if some state actually has changed.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@6766 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler
2004-02-26 18:26:50 +00:00
parent 2aa201551a
commit 79681755a6
+3 -1
View File
@@ -145,7 +145,9 @@ StateWatcher::~StateWatcher()
if (fWasModified != fEditor.IsModified())
update.AddBool("modified", fEditor.IsModified());
fEditor.SendNotices(kMsgDataEditorStateChange, &update);
// only send an update if we have to report anything
if (!update.IsEmpty())
fEditor.SendNotices(kMsgDataEditorStateChange, &update);
}