]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/Dialogs.cpp
next one
[lyx.git] / src / frontends / Dialogs.cpp
index 452b7ccbbf6ecd99c62124f271152d63b2e23835..9095d9236926810c0d55db67fa47260c91bc48de 100644 (file)
@@ -14,8 +14,6 @@
 
 #include "Dialogs.h"
 
-#include "callback.h"
-
 #include "controllers/Dialog.h"
 
 #include <boost/signal.hpp>
@@ -25,6 +23,8 @@ using std::string;
 
 namespace lyx {
 
+extern bool quitting;
+
 namespace frontend {
 
 Dialogs::Dialogs(LyXView & lyxview)
@@ -194,7 +194,7 @@ void Dialogs::checkStatus()
 
        for(; it != end; ++it) {
                Dialog * const dialog = it->second.get();
-               if (dialog->isVisibleView())
+               if (dialog && dialog->isVisibleView())
                        dialog->checkStatus();
        }
 }