Commit 9ab9a088 authored by Andrea Scarpino's avatar Andrea Scarpino

Set Organization Domain

parent d9b48988
/*
The MIT License (MIT)
Copyright (c) 2015 Andrea Scarpino <me@andreascarpino.it>
Copyright (c) 2015-2016 Andrea Scarpino <me@andreascarpino.it>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......@@ -38,7 +38,7 @@ LyricsManager::LyricsManager(QObject *parent) :
QObject(parent)
, api(0)
{
settings = new QSettings("it.andreascarpino", QCoreApplication::applicationName(), this);
settings = new QSettings(QCoreApplication::organizationDomain(), QCoreApplication::applicationName(), this);
setProvider(settings->value("Provider").toString());
}
......
/*
The MIT License (MIT)
Copyright (c) 2015 Andrea Scarpino <me@andreascarpino.it>
Copyright (c) 2015-2016 Andrea Scarpino <me@andreascarpino.it>
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
......@@ -37,6 +37,7 @@ int main(int argc, char *argv[])
QScopedPointer<QQuickView> view(SailfishApp::createView());
QCoreApplication::setApplicationName(QStringLiteral("Lyrics"));
QCoreApplication::setOrganizationDomain(QStringLiteral("it.andreascarpino"));
LyricsManager manager;
view->rootContext()->setContextProperty("manager", &manager);
......
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