]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt4/GuiAlert.cpp
Complete the removal of the embedding stuff. Maybe. It's hard to be sure we got every...
[lyx.git] / src / frontends / qt4 / GuiAlert.cpp
index ec904e96500fcdc218676f99fdf3634da34b5f41..75da5ee21e2a8c766378bbfcd2070f959865bdc8 100644 (file)
 #include "frontends/Application.h"
 
 #include "qt_helpers.h"
-#include "support/debug.h"
 #include "LyX.h" // for lyx::use_gui
 #include "ui_AskForTextUi.h"
 #include "support/gettext.h"
 
+#include "support/debug.h"
 #include "support/docstring.h"
 #include "support/lstrings.h"
 
@@ -30,6 +30,7 @@
 #include <QInputDialog>
 
 #include <iomanip>
+#include <iostream>
 
 using namespace std;
 using namespace lyx::support;
@@ -104,7 +105,7 @@ int prompt(docstring const & title0, docstring const & question,
                  int default_button, int cancel_button,
                  docstring const & b1, docstring const & b2, docstring const & b3)
 {
-       lyxerr << "PROMPT" << title0 << "FOCUS: " << qApp->focusWidget() << endl;
+       //lyxerr << "PROMPT" << title0 << "FOCUS: " << qApp->focusWidget() << endl;
        if (!use_gui || lyxerr.debugging()) {
                lyxerr << title0 << '\n'
                       << "----------------------------------------\n"
@@ -128,7 +129,7 @@ int prompt(docstring const & title0, docstring const & question,
        qApp->changeOverrideCursor(Qt::ArrowCursor);
 
        // FIXME replace that with guiApp->currentView()
-       LYXERR0("FOCUS: " << qApp->focusWidget());
+       //LYXERR0("FOCUS: " << qApp->focusWidget());
        int res = QMessageBox::information(qApp->focusWidget(),
                                           toqstr(title),
                                           toqstr(formatted(question)),