Commit f9355ee6 authored by Yuri Chornoivan's avatar Yuri Chornoivan
Browse files

Fix minor EBN issues

Summary: Include duplication, no newline at the end of file and missing argument to the i18n() call

Test Plan: Should work fine but needs a review for i18n() calls

Reviewers: #plasma, apol

Reviewed By: apol

Subscribers: apol, plasma-devel

Tags: #plasma

Differential Revision: https://phabricator.kde.org/D24580
parent 3be08932
......@@ -110,4 +110,4 @@ void DragHelper::setDragging(bool dragging)
return;
m_dragging = dragging;
emit draggingChanged();
}
\ No newline at end of file
}
......@@ -24,7 +24,6 @@
#include <QJsonArray>
#include <QJsonDocument>
#include <QJsonObject>
#include <QJsonArray>
#include <QUrl>
#include <KJob>
#include <KIO/Job>
......
......@@ -195,7 +195,7 @@ void sanity_check( int argc, char* argv[] )
if (!writeTest(path))
{
if (errno == ENOSPC)
msg = i18n("Temp directory (%1) is out of disk space.");
msg = i18n("Temp directory (%1) is out of disk space.", QFile::decodeName(path));
else
msg = i18n("Writing to the temp directory (%2) failed with\n "
"the error '%1'", QString::fromLocal8Bit(strerror(errno)), QFile::decodeName(path));
......@@ -205,9 +205,9 @@ void sanity_check( int argc, char* argv[] )
{
path += "/.ICE-unix";
if (access(path.data(), W_OK) && (errno != ENOENT))
msg = i18n("No write access to '%1'.");
msg = i18n("No write access to '%1'.", QFile::decodeName(path));
else if (access(path.data(), R_OK) && (errno != ENOENT))
msg = i18n("No read access to '%1'.");
msg = i18n("No read access to '%1'.", QFile::decodeName(path));
}
if (!msg.isEmpty())
{
......
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