Commit 777bbe6e authored by Jonathan Marten's avatar Jonathan Marten

Create QApplication before using I18N

Avoids assert on startup:
ASSERT failure in KCatalogPrivate::setupGettextEnv: "You need to instantiate a
Q*Application before using KCatalog", file ki18n/src/kcatalog.cpp, line 201
parent 0b871355
......@@ -30,6 +30,8 @@
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
KAboutData aboutData(QStringLiteral("bluedevilsendfile"),
i18n("Bluetooth Send File Wizard"),
BLUEDEVIL_VERSION,
......@@ -43,7 +45,6 @@ int main(int argc, char *argv[])
aboutData.addAuthor(QStringLiteral("Alejandro Fiestas Olivares"), i18n("Previous Maintainer"),
QStringLiteral("afiestas@kde.org"), QStringLiteral("http://www.afiestas.org/"));
QApplication app(argc, argv);
app.setAttribute(Qt::AA_UseHighDpiPixmaps);
app.setWindowIcon(QIcon::fromTheme(QStringLiteral("preferences-system-bluetooth")));
app.setQuitOnLastWindowClosed(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment