Commit cd7abb45 authored by David Jarvie's avatar David Jarvie

Bug 374337: Fix Export Alarms file save error

parent 2ce74e06
KAlarm Change Log
=== Version 2.11.12 (KDE Applications 16.12.1) --- 1 January 2017 ===
+ Fix Export Alarms file save error [KDE Bug 374337]
+ Fix arrow/page up/down keys not working in date edit control
(needs KDE Frameworks 5.30) [KDE Bug 373886]
=== Version 2.11.11 (KDE Applications 16.12.0) --- 16 November 2016 ===
+ Fix crash on exit [KDE Bug 372223]
......
/*
* alarmcalendar.cpp - KAlarm calendar file access
* Program: kalarm
* Copyright © 2001-2014 by David Jarvie <djarvie@kde.org>
* Copyright © 2001-2017 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
......@@ -730,11 +730,10 @@ bool AlarmCalendar::exportAlarms(const KAEvent::List& events, QWidget* parent)
&append);
if (file.isEmpty())
return false;
QUrl url;
url.setPath(file);
QUrl url = QUrl::fromLocalFile(file);
if (!url.isValid())
{
qCDebug(KALARM_LOG) << "Invalid URL";
qCDebug(KALARM_LOG) << "Invalid URL" << url;
return false;
}
qCDebug(KALARM_LOG) << url.toDisplayString();
......
/*
* kalarm.h - global header file
* Program: kalarm
* Copyright © 2001-2016 by David Jarvie <djarvie@kde.org>
* Copyright © 2001-2017 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
......@@ -24,7 +24,7 @@
#undef QT3_SUPPORT
#define VERSION_SUFFIX "-5"
#define KALARM_VERSION "2.11.11" VERSION_SUFFIX
#define KALARM_VERSION "2.11.12" VERSION_SUFFIX
#define KALARM_NAME "KAlarm"
#define KALARM_DBUS_SERVICE "org.kde.kalarm" // D-Bus service name of KAlarm application
......
/*
* main.cpp
* Program: kalarm
* Copyright © 2001-2016 by David Jarvie <djarvie@kde.org>
* Copyright © 2001-2017 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
......@@ -50,7 +50,7 @@ int main(int argc, char* argv[])
QStringLiteral(KALARM_VERSION),
i18n("Personal alarm message, command and email scheduler for KDE"),
KAboutLicense::GPL,
ki18n("Copyright 2001-%1, David Jarvie").subs(2016).toString(), QString(),
ki18n("Copyright 2001-%1, David Jarvie").subs(2017).toString(), QString(),
QStringLiteral("http://www.astrojar.org.uk/kalarm"));
aboutData.addAuthor(i18n("David Jarvie"), i18n("Author"), QStringLiteral("djarvie@kde.org"));
aboutData.setOrganizationDomain("kde.org");
......
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