ecere/gui/EditBox: Fixed selection menu items after undo
authorJerome St-Louis <jerome@ecere.com>
Thu, 10 Jul 2014 11:26:28 +0000 (07:26 -0400)
committerJerome St-Louis <jerome@ecere.com>
Thu, 10 Jul 2014 11:26:28 +0000 (07:26 -0400)
- Calls to SetViewToCursor() that used to be responsible for invoking SelectionEnables()
 had been commented out, so now calling it directly as well as UpdateDirty() and SetSelectCursor()

ecere/src/gui/controls/EditBox.ec

index e4aab98..c9408fe 100644 (file)
@@ -5180,6 +5180,11 @@ public:
       undoBuffer.Undo();
       itemEditUndo.disabled = undoBuffer.curAction == 0;
       itemEditRedo.disabled = undoBuffer.curAction == undoBuffer.count;
+
+      UpdateDirty();
+      SetSelectCursor();
+      SelectionEnables();
+
       if(savedAction == undoBuffer.curAction)
       {
          modifiedDocument = false;
@@ -5193,6 +5198,11 @@ public:
       undoBuffer.Redo();
       itemEditUndo.disabled = undoBuffer.curAction == 0;
       itemEditRedo.disabled = undoBuffer.curAction == undoBuffer.count;
+
+      UpdateDirty();
+      SetSelectCursor();
+      SelectionEnables();
+
       if(savedAction == undoBuffer.curAction)
       {
          modifiedDocument = false;