Skip to content

Commit

Permalink
Destination text auto-edit if text is empty (#22)
Browse files Browse the repository at this point in the history
Now the destination verse edit automatically enters into edit mode if
its text is empty. This can be very useful in a translation project.
  • Loading branch information
rubiot committed Jan 18, 2019
1 parent d684819 commit 13f69ef
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions projeto.pas
Original file line number Diff line number Diff line change
Expand Up @@ -771,6 +771,9 @@ procedure TProjeto.PosRolagemVersiculo(DataSet: TDataSet);

if assigned(OnNovoVersiculo) then
OnNovoVersiculo(self);

if FTblPares.Fields[FACamposTexto[tbDestino]].AsString.IsEmpty then // open verse to edition if is empty
OnDblClickVersiculo(FAVersiculo[tbDestino].Painel);
end;

procedure TProjeto.SalvarPares;
Expand Down

0 comments on commit 13f69ef

Please sign in to comment.