From bb80adfc605a446517c930a55cf7fee24a2bd3c6 Mon Sep 17 00:00:00 2001 From: guy Date: Tue, 13 Jun 1995 16:27:55 +0000 Subject: [PATCH] Corretto errore di unlocking in modo inserimento git-svn-id: svn://10.65.10.50/trunk@1475 c028cbd2-c16b-5b4b-a496-9718f37d4682 --- include/relapp.cpp | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/include/relapp.cpp b/include/relapp.cpp index 1d2d3c1b5..a14dff7e1 100755 --- a/include/relapp.cpp +++ b/include/relapp.cpp @@ -1,4 +1,4 @@ -// $Id: relapp.cpp,v 1.58 1995-06-05 16:04:50 alex Exp $ +// $Id: relapp.cpp,v 1.59 1995-06-13 16:27:55 guy Exp $ #include #include #include @@ -612,9 +612,12 @@ bool TRelation_application::save(bool check_dirty) k = yesnocancel_box("Registrare %s?", ms); if (k == K_ESC || k == K_NO) - { - get_relation()->restore_status(); - get_relation()->lfile().reread(_unlock); // Unlock main file + { + if (mode == MODE_MOD) + { + get_relation()->restore_status(); + get_relation()->lfile().reread(_unlock); // Unlock main file + } was_dirty = FALSE; return TRUE; }