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:
@@ -145,7 +145,9 @@ StateWatcher::~StateWatcher()
|
|||||||
if (fWasModified != fEditor.IsModified())
|
if (fWasModified != fEditor.IsModified())
|
||||||
update.AddBool("modified", 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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user