Abdelrazak Younes <[EMAIL PROTECTED]> writes:

| Index: lyx_main.C
| ===================================================================
| --- lyx_main.C        (revision 15112)
| +++ lyx_main.C        (working copy)
| @@ -35,12 +35,12 @@
|  #include "lyxlex.h"
|  #include "lyxrc.h"
|  #include "lyxtextclasslist.h"
| -#include "lyxserver.h"
|  #include "MenuBackend.h"
|  #include "mover.h"
|  #include "ToolbarBackend.h"
|  
|  #include "frontends/Alert.h"
| +#include "frontends/Application.h"
|  #include "frontends/lyx_gui.h"
|  #include "frontends/LyXView.h"
|  
| @@ -89,8 +89,6 @@
|  #endif
|  
|  
| -extern LyXServer * lyxserver;
| -
|  // This is the global bufferlist object
|  BufferList bufferlist;
|  
| @@ -661,8 +659,7 @@
|       // a crash
|  
|       bufferlist.emergencyWriteAll();
| -     if (lyxserver)
| -             lyxserver->emergencyCleanup();
| +     theApp->server().emergencyCleanup();

I must admit that I really dislike the "theApp" name.

To me it conveys absolutely no information.

even "theLyX" had been better.

-- 
        Lgb

Reply via email to