Add QCoreApplication
ClosedPublic

Authored by broulik on Oct 11 2018, 9:07 AM.

Details

Summary

Otherwise KLocalizedString asserts

Test Plan

Can browse pictures using camera:/ again

Diff Detail

Repository
R370 Kamera
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
broulik requested review of this revision.Oct 11 2018, 9:07 AM
broulik created this revision.
dfaure accepted this revision.Oct 11 2018, 12:48 PM
This revision is now accepted and ready to land.Oct 11 2018, 12:48 PM
This revision was automatically updated to reflect the committed changes.

@broulik so you were getting the

./kioslave/kamera.cpp:796:        error(KIO::ERR_SLAVE_DEFINED, i18n("Could not read. Reason: %1",

often? Or is it somehow an inherited i18n call?

Also FWIW there's no Messages.sh in kioslave/kamera so that i18n is "untranslatable" at this point.

Do you feel like adding the Messages.sh and a add_definitions(-DTRANSLATION_DOMAIN=\"\") in the CMakeLists.txt ?

Thanks for sorting that out so quickly.