fix, edit action copy/cut/paste were always greyed but shortcut were still working. flux.

This commit is contained in:
Basile Burg 2014-11-15 16:25:35 +01:00
parent f2c702757e
commit 61def85939
1 changed files with 3 additions and 3 deletions

View File

@ -768,9 +768,9 @@ begin
hasEd := fDoc <> nil;
if hasEd then
begin
actEdCopy.Enabled := fDoc.SelAvail and fEditWidg.Focused;
actEdCut.Enabled := fDoc.SelAvail and fEditWidg.Focused;
actEdPaste.Enabled := fDoc.CanPaste and fEditWidg.Focused;
actEdCopy.Enabled := fDoc.SelAvail and fDoc.Focused;
actEdCut.Enabled := fDoc.SelAvail and fDoc.Focused;
actEdPaste.Enabled := fDoc.CanPaste and fDoc.Focused;
{$IFDEF MSWINDOWS}
// close file : raises a segfault on linux UndoStuff.>>fList<<.Count...
actEdUndo.Enabled := fDoc.CanUndo;