[evolution/wip/mcrha/webkit-jsc-api] Allow EvoUndoRedo.GroupTopRecords() only when undo/redo is not disabled
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution/wip/mcrha/webkit-jsc-api] Allow EvoUndoRedo.GroupTopRecords() only when undo/redo is not disabled
- Date: Wed, 11 Dec 2019 14:05:41 +0000 (UTC)
commit 5dbade94c5c755cff6872119be2870ce535d04b5
Author: Milan Crha <mcrha redhat com>
Date: Wed Dec 11 15:06:49 2019 +0100
Allow EvoUndoRedo.GroupTopRecords() only when undo/redo is not disabled
data/webkit/e-undo-redo.js | 3 +++
1 file changed, 3 insertions(+)
---
diff --git a/data/webkit/e-undo-redo.js b/data/webkit/e-undo-redo.js
index cffa51755c..23382fceee 100644
--- a/data/webkit/e-undo-redo.js
+++ b/data/webkit/e-undo-redo.js
@@ -717,6 +717,9 @@ EvoUndoRedo.Clear = function()
EvoUndoRedo.GroupTopRecords = function(nRecords, opType)
{
+ if (EvoUndoRedo.disabled)
+ return;
+
if (EvoUndoRedo.ongoingRecordings.length)
throw "EvoUndoRedo.GroupTopRecords: Cannot be called when there are ongoing recordings";
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]