Corretta gestione della cancellazione di tuute le righe di un file

git-svn-id: svn://10.65.10.50/trunk@3174 c028cbd2-c16b-5b4b-a496-9718f37d4682
This commit is contained in:
guy 1996-07-10 07:18:26 +00:00
parent 3a1704b19a
commit 93d31cbd5f

View File

@ -80,8 +80,7 @@ bool TEdit_file::browse(int logicnum, const TFilename& name, const TString& tab)
if (!pind) if (!pind)
{ {
pind = new TProgind(sheet.checked(),"Attendere...", pind = new TProgind(sheet.checked(),"Attendere...", TRUE, TRUE, 32);
TRUE, TRUE, 32);
pind->addstatus(1); pind->addstatus(1);
} }
else else
@ -97,10 +96,18 @@ bool TEdit_file::browse(int logicnum, const TFilename& name, const TString& tab)
if (pind) delete pind; if (pind) delete pind;
cursor.freeze(FALSE); cursor.freeze(FALSE);
if (first) {sheet.select(1); continue;} if (first)
{
if (cursor.items() > 0)
sheet.select(1);
continue;
}
} }
if (ch == K_ENTER || ch == K_DEL) if (ch == K_ENTER || ch == K_DEL)
cursor = sheet.selected(); {
if (cursor.items() > 0)
cursor = sheet.selected();
}
switch(ch) switch(ch)
{ {