]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiApplication.cpp
only called once
[lyx.git] / src / frontends / qt4 / GuiApplication.cpp
index 0161891f74a2997e329d7966346515f6c5ec6b3f..ab19035881ca304822972e8bc4567df57a82fa43 100644 (file)
@@ -25,8 +25,6 @@
 #include "frontends/FontLoader.h"
 #include "frontends/FontMetrics.h"
 
-#include "graphics/LoaderQueue.h"
-
 #include "support/ExceptionMessage.h"
 #include "support/FileName.h"
 #include "support/lstrings.h"
@@ -187,8 +185,6 @@ GuiApplication::GuiApplication(int & argc, char ** argv)
        QWidget w;
        lyxrc.dpi = (w.logicalDpiX() + w.logicalDpiY()) / 2;
 
-       LoaderQueue::setPriority(10,100);
-
        guiApp = this;
 
        // Set the cache to 5120 kilobytes which corresponds to screen size of
@@ -213,6 +209,14 @@ GuiApplication::~GuiApplication()
 }
 
 
+void GuiApplication::resetGui()
+{
+       map<int, GuiView *>::iterator it;
+       for (it = views_.begin(); it != views_.end(); ++it)
+               it->second->resetDialogs();
+}
+
+
 static void updateIds(map<int, GuiView *> const & stdmap, vector<int> & ids)
 {
        ids.clear();
@@ -222,7 +226,7 @@ static void updateIds(map<int, GuiView *> const & stdmap, vector<int> & ids)
 }
 
 
-LyXView & GuiApplication::createView(string const & geometry_arg)
+void GuiApplication::createView(string const & geometry_arg)
 {
        updateIds(views_, view_ids_);
        int id = 0;
@@ -251,8 +255,6 @@ LyXView & GuiApplication::createView(string const & geometry_arg)
        view->setFocus();
 
        setCurrentView(*view);
-
-       return *view;
 }