Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instantiate QApplication sooner so applicationDirPath() is valid #508

Merged
merged 1 commit into from
Oct 30, 2016

Conversation

in3otd
Copy link
Contributor

@in3otd in3otd commented Apr 17, 2016

...now is my turn to realize i did a sloppy review 😒

In #501 the path for the language files was changed to be relative to the application path, but if a QApplication() object is not instantiated before calling QCoreApplication::applicationDirPath() this latter actually returns an empty path, so the language files are not found (unless you run the application from the prefix directory).
This was already fixed for qucshelp in #473, but after #501 all the other tools needed to be updated .

I have checked this to work but please double/triple check...

applicationDirPath() was used before a QApplication was instantiated
so it returned an empty path. This caused the application language
files path to be computed incorrectly.
@in3otd in3otd added this to the 0.0.19 milestone Apr 17, 2016
@guitorri
Copy link
Member

All applications seem to find the translations here. Thanks!

@guitorri guitorri merged commit 3df4200 into Qucs:release-0.0.19 Oct 30, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants