diff options
author | Graeme Geldenhuys <graemeg@gmail.com> | 2010-08-22 13:50:03 +0200 |
---|---|---|
committer | Graeme Geldenhuys <graemeg@gmail.com> | 2010-08-22 13:50:03 +0200 |
commit | fed01ba7093a63b588418f775942be46f7104720 (patch) | |
tree | 3818a801ed10ec3276669ba1bff27183e7d57139 /docview | |
parent | 2d778127299c53f1f5e1d631ef9b824f1643f04d (diff) | |
download | fpGUI-fed01ba7093a63b588418f775942be46f7104720.tar.xz |
docview: sanity check added if no files are opened, stop trying to process nothing.
Diffstat (limited to 'docview')
-rw-r--r-- | docview/src/frm_main.pas | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docview/src/frm_main.pas b/docview/src/frm_main.pas index 4a6231cf..64a07ecb 100644 --- a/docview/src/frm_main.pas +++ b/docview/src/frm_main.pas @@ -1147,6 +1147,9 @@ var begin LogEvent(LogStartup, 'OpenFiles' ); + if CurrentOpenFiles.Count = 0 then + exit; // nothing to do + //if not OKToCloseFile then // exit; |