Commit 7d1c6fd0 authored by David Jarvie's avatar David Jarvie
Browse files

Fix message captions when called from KAlarmApp constructor

parent a1d3569a
......@@ -130,25 +130,6 @@ KAlarmApp::KAlarmApp(int& argc, char** argv)
KAEvent::setWorkTime(Preferences::workDays(), Preferences::workDayStart(), Preferences::workDayEnd());
KAEvent::setHolidays(Preferences::holidays());
KAEvent::setDefaultFont(Preferences::messageFont());
if (initialise()) // initialise calendars and alarm timer
{
connect(Resources::instance(), &Resources::resourceAdded,
this, &KAlarmApp::slotResourceAdded);
connect(Resources::instance(), &Resources::resourcePopulated,
this, &KAlarmApp::slotResourcePopulated);
connect(Resources::instance(), &Resources::resourcePopulated,
this, &KAlarmApp::purgeNewArchivedDefault);
connect(Resources::instance(), &Resources::resourcesCreated,
this, &KAlarmApp::checkWritableCalendar);
connect(Resources::instance(), &Resources::migrationCompleted,
this, &KAlarmApp::checkWritableCalendar);
KConfigGroup config(KSharedConfig::openConfig(), "General");
mNoSystemTray = config.readEntry("NoSystemTray", false);
mOldShowInSystemTray = wantShowInSystemTray();
DateTime::setStartOfDay(Preferences::startOfDay());
mPrefsArchivedColour = Preferences::archivedColour();
}
// Check if KOrganizer is installed
const QString korg = QStringLiteral("korganizer");
......
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