Add version to application name in session info.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@21646 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-11-16 22:10:35 +00:00
parent ce46ca8653
commit d9194a2fcf

View File

@ -36,6 +36,7 @@
#include "LyX.h"
#include "LyXFunc.h"
#include "LyXRC.h"
#include "version.h"
#include <QApplication>
#include <QClipboard>
@ -129,9 +130,10 @@ GuiApplication * guiApp;
GuiApplication::GuiApplication(int & argc, char ** argv)
: QApplication(argc, argv), Application()
{
QCoreApplication::setOrganizationName("LyX");
QString app_name = "LyX";
QCoreApplication::setOrganizationName(app_name);
QCoreApplication::setOrganizationDomain("lyx.org");
QCoreApplication::setApplicationName("LyX");
QCoreApplication::setApplicationName(app_name + lyx_version);
// Qt bug? setQuitOnLastWindowClosed(true); does not work
setQuitOnLastWindowClosed(false);