Licenses and a small fix
svn path=/trunk/KDE/kdelibs/; revision=1066558
This commit is contained in:
parent
96d2513e9e
commit
efad503bed
@ -1,22 +1,21 @@
|
|||||||
/*
|
/*
|
||||||
* Copyright (C) 2009 Dario Freddi <drf@kde.org>
|
Copyright (C) 2009 Dario Freddi <drf@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
|
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
|
||||||
*
|
|
||||||
* This program is distributed in the hope that it will be useful,
|
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
|
||||||
*
|
|
||||||
* You should have received a copy of the GNU General Public License
|
|
||||||
* along with this program; if not, write to the Free Software
|
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
|
||||||
*/
|
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU Lesser General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2.1 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
|
along with this program; if not, write to the
|
||||||
|
Free Software Foundation, Inc.,
|
||||||
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA .
|
||||||
|
*/
|
||||||
#include "remotewidgetshelper_p.h"
|
#include "remotewidgetshelper_p.h"
|
||||||
|
|
||||||
#include <QFile>
|
#include <QFile>
|
||||||
@ -28,7 +27,7 @@ ActionReply RemoteWidgetsHelper::save(const QVariantMap &args)
|
|||||||
QString source = args["source"].toString();
|
QString source = args["source"].toString();
|
||||||
|
|
||||||
QFile file(filename);
|
QFile file(filename);
|
||||||
if (!file.open(QIODevice::WriteOnly)) {
|
if (!file.open(QIODevice::WriteOnly | QIODevice::Truncate)) {
|
||||||
ActionReply reply = ActionReply::HelperErrorReply;
|
ActionReply reply = ActionReply::HelperErrorReply;
|
||||||
reply.setErrorCode(file.error());
|
reply.setErrorCode(file.error());
|
||||||
|
|
||||||
|
@ -1,22 +1,20 @@
|
|||||||
/*
|
/*
|
||||||
* main.h
|
Copyright (C) 2009 Dario Freddi <drf@kde.org>
|
||||||
*
|
|
||||||
* Copyright (C) 2009 Dario Freddi <drf@kde.org>
|
This program is free software; you can redistribute it and/or modify
|
||||||
*
|
it under the terms of the GNU Lesser General Public License as published by
|
||||||
* This program is free software; you can redistribute it and/or modify
|
the Free Software Foundation; either version 2.1 of the License, or
|
||||||
* it under the terms of the GNU General Public License as published by
|
(at your option) any later version.
|
||||||
* the Free Software Foundation; either version 2 of the License, or
|
|
||||||
* (at your option) any later version.
|
This program is distributed in the hope that it will be useful,
|
||||||
*
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* This program is distributed in the hope that it will be useful,
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
GNU General Public License for more details.
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
||||||
* GNU General Public License for more details.
|
You should have received a copy of the GNU Lesser General Public License
|
||||||
*
|
along with this program; if not, write to the
|
||||||
* You should have received a copy of the GNU General Public License
|
Free Software Foundation, Inc.,
|
||||||
* along with this program; if not, write to the Free Software
|
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA .
|
||||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
|
||||||
*
|
|
||||||
*/
|
*/
|
||||||
#ifndef REMOTEWIDGETS_HELPER_H
|
#ifndef REMOTEWIDGETS_HELPER_H
|
||||||
#define REMOTEWIDGETS_HELPER_H
|
#define REMOTEWIDGETS_HELPER_H
|
||||||
|
Loading…
Reference in New Issue
Block a user