summaryrefslogtreecommitdiff
path: root/docview
diff options
context:
space:
mode:
authorGraeme Geldenhuys <graemeg@gmail.com>2010-08-22 13:50:03 +0200
committerGraeme Geldenhuys <graemeg@gmail.com>2010-08-22 13:50:03 +0200
commitfed01ba7093a63b588418f775942be46f7104720 (patch)
tree3818a801ed10ec3276669ba1bff27183e7d57139 /docview
parent2d778127299c53f1f5e1d631ef9b824f1643f04d (diff)
downloadfpGUI-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.pas3
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;