Commit 91265bbb authored by David Jarvie's avatar David Jarvie
Browse files

Fix specification on command line of a reminder after the alarm

parent 19595b89
KAlarm Change Log
=== Version 2.11.4 --- 22 January 2016 ===
=== Version 2.11.4 --- 27 January 2016 ===
- Fix reminder time edit being covered by 'in advance' combo [KDE Bug 357018]
- Fix crash after editing an alarm, if spell check is enabled [KDE Bug 356048]
- Fix occasional crash on startup [KDE Bug 358217]
- Fix specification on command line of a reminder after the alarm.
=== Version 2.11.3 (KDE Applications 15.08.3) --- 4 November 2015 ===
- Re-enable use of sendmail for email alarms.
......
/*
* commandoptions.cpp - extract command line options
* Program: kalarm
* Copyright © 2001-2015 by David Jarvie <djarvie@kde.org>
* Copyright © 2001-2016 by David Jarvie <djarvie@kde.org>
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
......@@ -387,7 +387,7 @@ CommandOptions::CommandOptions()
QByteArray optval = mArgs->getOption(onceOnly ? "reminder-once" : "reminder").toLocal8Bit();
bool after = (optval[0] == '+');
if (after)
optval = optval.right(1);
optval.remove(0, 1); // it's a reminder after the main alarm
if (!convInterval(optval, recurType, mReminderMinutes))
setErrorParameter(opt);
else if (recurType == KARecurrence::MINUTELY && mAlarmTime.isDateOnly())
......
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