* do not change name of QSettings config file on LyX version change.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@30301 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Jürgen Spitzmüller 2009-06-29 08:44:32 +00:00
parent 74aad3cb41
commit 2efcbb74d6
3 changed files with 9 additions and 2 deletions

View File

@ -714,12 +714,13 @@ GuiApplication::~GuiApplication()
GuiApplication::GuiApplication(int & argc, char ** argv)
: QApplication(argc, argv), current_view_(0), d(new GuiApplication::Private)
: QApplication(argc, argv), current_view_(0),
d(new GuiApplication::Private)
{
QString app_name = "LyX";
QCoreApplication::setOrganizationName(app_name);
QCoreApplication::setOrganizationDomain("lyx.org");
QCoreApplication::setApplicationName(app_name + "-" + lyx_version);
QCoreApplication::setApplicationName(lyx_package);
// Install translator for GUI elements.
installTranslator(&d->qt_trans_);

View File

@ -16,5 +16,8 @@ char const * lyx_version = PACKAGE_VERSION;
///
char const * lyx_release_date = LYX_DATE;
/// Package identifier (lyx[-<version-suffix>])
char const * lyx_package = PACKAGE;
/// This is the version information shown by 'lyx --version'
char const * lyx_version_info = VERSION_INFO;

View File

@ -19,6 +19,9 @@ extern char const * lyx_version;
///
extern char const * lyx_release_date;
/// Package identifier (lyx[-<version-suffix>])
extern char const * lyx_package;
/// This is the version information shown by 'lyx -version'
extern char const * lyx_version_info;