]> git.lyx.org Git - features.git/blobdiff - src/frontends/qt4/GuiAlert.cpp
thrid attempt at changing the naming pattern of the intermediated 'mocced' files
[features.git] / src / frontends / qt4 / GuiAlert.cpp
index e399835a7bf8073a4bfbc9ec6d64056e229e4e6c..5c128bc7d13973bd896f7c64921cac312239a51f 100644 (file)
@@ -171,6 +171,9 @@ void warning(docstring const & title0, docstring const & message)
 }
 
 
+int argc = 1;
+char * argv[1];
+
 void error(docstring const & title0, docstring const & message)
 {
        lyxerr << "Error: " << title0 << '\n'
@@ -182,8 +185,6 @@ void error(docstring const & title0, docstring const & message)
 
        docstring const title = bformat(_("LyX: %1$s"), title0);
        if (theApp() == 0) {
-               int argc = 1;
-               char * argv[1];
                QApplication app(argc, argv);
                QMessageBox::critical(0,
                        toqstr(title),