]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/xforms/Timeout_pimpl.C
fix crash with "save as"
[lyx.git] / src / frontends / xforms / Timeout_pimpl.C
index ad96ae2d879642e71069dd4c0fb0436ced4e92f7..e022dacca71f4f4832e9f715ed9f63c925c18a68 100644 (file)
@@ -1,10 +1,12 @@
 /**
- * \file Timeout_pimpl.C
- * Copyright 2001 LyX Team
- * Read COPYING
+ * \file xforms/Timeout_pimpl.C
+ * This file is part of LyX, the document processor.
+ * Licence details can be found in the file COPYING.
  *
  * \author Lars Gullik Bjønnes
  * \author John Levon
+ *
+ * Full author contact details are available in file CREDITS
  */
 
 #include <config.h>
@@ -23,13 +25,13 @@ using std::endl;
 namespace {
 
 extern "C" {
-       
-       static
-       void C_intern_timeout_cb(int, void * data)
-       {
-               Timeout * to = static_cast<Timeout *>(data);
-               to->emit();
-       }
+
+static
+void C_intern_timeout_cb(int, void * data)
+{
+       Timeout * to = static_cast<Timeout *>(data);
+       to->emit();
+}
 
 }
 
@@ -48,6 +50,12 @@ void Timeout::Pimpl::reset()
 }
 
 
+bool Timeout::Pimpl::running() const
+{
+       return timeout_id != -1;
+}
+
+
 void Timeout::Pimpl::start()
 {
        if (timeout_id != -1)