]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiView.cpp
Restructure processFuncRequest* function family:
[features.git] / src / frontends / qt4 / GuiView.cpp
index 10e461a4b71b1fb4ddf2e0c4a635b76e47f9ae1b..efcbdd86b03bf9806c37d51f07f3bab4da9bb925 100644 (file)
@@ -795,10 +795,12 @@ void GuiView::dropEvent(QDropEvent * event)
                        cmd = FuncRequest(LFUN_FILE_OPEN, file);
                }
                // add the functions to the queue
-               guiApp->addtoFuncRequestQueue(cmd);
+               guiApp->addToFuncRequestQueue(cmd);
                event->accept();
        }
-       // now process the collected functions
+       // now process the collected functions. We perform the events
+       // asynchronously. This prevents potential problems in case the
+       // BufferView is closed within an event.
        guiApp->processFuncRequestQueueAsync();
 }