]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiApplication.cpp
Introducing Application::resetGui() that will reset all dialogs in all lyx windows...
[lyx.git] / src / frontends / qt4 / GuiApplication.cpp
index 0161891f74a2997e329d7966346515f6c5ec6b3f..e646929f76c60e5243754bb79e65be6303b9cad3 100644 (file)
@@ -213,6 +213,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();