Commit 47e943d4 authored by Laurent Montel's avatar Laurent Montel 😁

move before qapplication

parent 1b3e0ca7
......@@ -35,6 +35,16 @@ static const char description[] = I18N_NOOP("A KDE game similar to Mahjongg");
int main(int argc, char **argv)
{
// Migrate pre-existing (4.x) configuration
QStringList configFiles;
configFiles.append(QLatin1String("kshisenrc"));
configFiles.append(QLatin1String("kshisen.notifyrc"));
Kdelibs4ConfigMigrator migrate(QLatin1String("kshisen"));
migrate.setConfigFiles(configFiles);
migrate.setUiFiles(QStringList() << QLatin1String("kshisenui.rc"));
migrate.migrate();
QApplication a(argc, argv);
KAboutData aboutData(QLatin1Literal("kshisen"), i18n("Shisen-Sho"),
......@@ -55,16 +65,6 @@ int main(int argc, char **argv)
parser.process(a);
aboutData.processCommandLine(&parser);
// Migrate pre-existing (4.x) configuration
QStringList configFiles;
configFiles.append(QLatin1String("kshisenrc"));
configFiles.append(QLatin1String("kshisen.notifyrc"));
Kdelibs4ConfigMigrator migrate(QLatin1String("kshisen"));
migrate.setConfigFiles(configFiles);
migrate.setUiFiles(QStringList() << QLatin1String("kshisenui.rc"));
migrate.migrate();
a.setWindowIcon(QIcon::fromTheme(QLatin1String("kshisen")));
KDBusService service;
......
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