Only set default hint when the application is created.

This commit is contained in:
Patrick von Reth 2015-09-10 17:17:08 +02:00
parent d00c6ea013
commit 2c178b2fe4
2 changed files with 2 additions and 2 deletions

View File

@ -28,7 +28,6 @@ Application::Application():
Application::Application(const QString &name, const Icon &icon) :
d(new ApplicationData(name, name, icon))
{
}
@ -91,7 +90,6 @@ bool Application::isValid() const
Hint &Application::hints()
{
d->m_hint.setValue("silent", SnoreCore::instance().settingsValue(QLatin1String("Silent"), LOCAL_SETTING));
return d->m_hint;
}

View File

@ -34,6 +34,8 @@ ApplicationData::ApplicationData(const QString &key, const QString &name, const
m_hint.setValue("pushover-token", QLatin1String("aFB1TPCyZkkr7mubCGEKy5vJEWak9t"));
m_hint.setValue("use-markup", false);
m_hint.setValue("silent", SnoreCore::instance().settingsValue(QLatin1String("Silent"), LOCAL_SETTING));
}
ApplicationData::~ApplicationData()