Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/pdf/xpdf/XPDFApp.cc
diff options
context:
space:
mode:
Diffstat (limited to 'pdf/xpdf/XPDFApp.cc')
-rw-r--r--pdf/xpdf/XPDFApp.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/pdf/xpdf/XPDFApp.cc b/pdf/xpdf/XPDFApp.cc
index 864dabb..d93f2a0 100644
--- a/pdf/xpdf/XPDFApp.cc
+++ b/pdf/xpdf/XPDFApp.cc
@@ -2,7 +2,7 @@
//
// XPDFApp.cc
//
-// Copyright 2002 Glyph & Cog, LLC
+// Copyright 2002-2003 Glyph & Cog, LLC
//
//========================================================================
@@ -270,7 +270,11 @@ void XPDFApp::quit() {
while (viewers->getLength() > 0) {
delete (XPDFViewer *)viewers->del(0);
}
+#if HAVE_XTAPPSETEXITFLAG
+ exit(0);
+#else
XtAppSetExitFlag(appContext);
+#endif
}
void XPDFApp::run() {