diff options
author | David Faure <david.faure@kdab.com> | 2015-02-22 19:35:43 +0100 |
---|---|---|
committer | David Faure <david.faure@kdab.com> | 2015-03-05 10:29:27 +0000 |
commit | 6c973dee2cb1686ea32657fff7dced3e611b98ce (patch) | |
tree | 5fb6dc6546349b38a62f1f4f396808f6b0626196 /config.tests/x11 | |
parent | dce3721f90eb7179df6f91d27614adfb29059b65 (diff) |
Make QCoreApplication::applicationName available after app destruction.
Calling applicationName() in the destructor of a global static (e.g.
via QLockFile) was working when calling setApplicationName explicitly
but otherwise it would suddenly return an empty string.
This led to inconsistencies, the application name switching from
non-empty to empty at saving-on-destruction time.
There was already a global static, used when setting the app name
explicitly before construction. Use it now to store the app name
in all cases (explicitly set, or fallback).
Change-Id: I71d3a0c40158f8bfd022c385b198346a2594b1cb
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@theqtcompany.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'config.tests/x11')
0 files changed, 0 insertions, 0 deletions