]> www.fi.muni.cz Git - evince.git/blobdiff - pdf/xpdf/XPDFApp.cc
Import of Xpdf 2.02 for merge
[evince.git] / pdf / xpdf / XPDFApp.cc
index 864dabb480a54ff601ebd23782d46860b9f0a833..d93f2a0490c2898731f80bd174be099d368518ec 100644 (file)
@@ -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() {