Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libksieve
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PIM
libksieve
Commits
be8ae868
Commit
be8ae868
authored
May 12, 2017
by
Laurent Montel
😁
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add newline after each error message
parent
a58c6795
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
9 additions
and
9 deletions
+9
-9
src/ksieveui/autocreatescripts/autocreatescriptutil.cpp
src/ksieveui/autocreatescripts/autocreatescriptutil.cpp
+1
-1
src/ksieveui/autocreatescripts/commonwidgets/selectconvertparameterwidget.cpp
...atescripts/commonwidgets/selectconvertparameterwidget.cpp
+2
-2
src/ksieveui/autocreatescripts/sieveactions/sieveactionsetvariable.cpp
...autocreatescripts/sieveactions/sieveactionsetvariable.cpp
+1
-1
src/ksieveui/autocreatescripts/sieveactionwidgetlister.cpp
src/ksieveui/autocreatescripts/sieveactionwidgetlister.cpp
+1
-1
src/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp
src/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp
+2
-2
src/ksieveui/autocreatescripts/sieveglobalvariablewidget.cpp
src/ksieveui/autocreatescripts/sieveglobalvariablewidget.cpp
+1
-1
src/ksieveui/autocreatescripts/sieveincludewidget.cpp
src/ksieveui/autocreatescripts/sieveincludewidget.cpp
+1
-1
No files found.
src/ksieveui/autocreatescripts/autocreatescriptutil.cpp
View file @
be8ae868
...
...
@@ -165,7 +165,7 @@ QString AutoCreateScriptUtil::fixListValue(QString valueStr)
void
AutoCreateScriptUtil
::
comboboxItemNotFound
(
const
QString
&
searchItem
,
const
QString
&
name
,
QString
&
error
)
{
error
+=
i18n
(
"Cannot find item
\"
%1
\"
in widget
\"
%2
\"
"
,
searchItem
,
name
);
error
+=
i18n
(
"Cannot find item
\"
%1
\"
in widget
\"
%2
\"
"
,
searchItem
,
name
)
+
QLatin1Char
(
'\n'
)
;
}
QString
AutoCreateScriptUtil
::
createFullWhatsThis
(
const
QString
&
help
,
const
QString
&
href
)
...
...
src/ksieveui/autocreatescripts/commonwidgets/selectconvertparameterwidget.cpp
View file @
be8ae868
...
...
@@ -44,12 +44,12 @@ void SelectConvertParameterWidget::setCode(const QStringList &code, QString &err
}
if
(
code
.
count
()
<
2
)
{
error
+=
i18n
(
"Not enough arguments for SelectConvertParameterWidget. Expected 2 arguments."
);
error
+=
i18n
(
"Not enough arguments for SelectConvertParameterWidget. Expected 2 arguments."
)
+
QLatin1Char
(
'\n'
)
;
qCDebug
(
LIBKSIEVE_LOG
)
<<
" SelectConvertParameterWidget::setCode parsing error ?"
;
return
;
}
if
(
code
.
count
()
>
2
)
{
error
+=
i18n
(
"Too many arguments for SelectConvertParameterWidget,
\"
%1
\"
"
,
code
.
count
());
error
+=
i18n
(
"Too many arguments for SelectConvertParameterWidget,
\"
%1
\"
"
,
code
.
count
())
+
QLatin1Char
(
'\n'
)
;
qCDebug
(
LIBKSIEVE_LOG
)
<<
" too many argument "
<<
code
.
count
();
}
...
...
src/ksieveui/autocreatescripts/sieveactions/sieveactionsetvariable.cpp
View file @
be8ae868
...
...
@@ -110,7 +110,7 @@ bool SieveActionSetVariable::setParamWidgetValue(const QDomElement &element, QWi
QCheckBox
*
protectAgainstUseRegexp
=
w
->
findChild
<
QCheckBox
*>
(
QStringLiteral
(
"regexprotect"
));
protectAgainstUseRegexp
->
setChecked
(
true
);
}
else
{
error
+=
QLatin1Char
(
'\n'
)
+
i18n
(
"Script needs regex support, but server does not have it."
);
error
+=
i18n
(
"Script needs regex support, but server does not have it."
)
+
QLatin1Char
(
'\n'
);
}
}
else
{
SelectVariableModifierComboBox
*
modifier
=
w
->
findChild
<
SelectVariableModifierComboBox
*>
(
QStringLiteral
(
"modifier"
));
...
...
src/ksieveui/autocreatescripts/sieveactionwidgetlister.cpp
View file @
be8ae868
...
...
@@ -381,7 +381,7 @@ void SieveActionWidgetLister::loadScript(const QDomElement &element, bool onlyAc
const
QString
actionName
=
e
.
attribute
(
QStringLiteral
(
"name"
));
if
(
tagName
==
QLatin1String
(
"control"
)
&&
actionName
==
QLatin1String
(
"if"
))
{
qCDebug
(
LIBKSIEVE_LOG
)
<<
"We found an loop if in a loop if. Not supported"
;
error
+=
QLatin1Char
(
'\n'
)
+
i18n
(
"We detected a loop if in a loop if. It's not supported"
)
+
QLatin1Char
(
'\n'
);
error
+=
i18n
(
"We detected a loop if in a loop if. It's not supported"
)
+
QLatin1Char
(
'\n'
);
}
if
(
firstAction
)
{
firstAction
=
false
;
...
...
src/ksieveui/autocreatescripts/sieveforeverypartwidget.cpp
View file @
be8ae868
...
...
@@ -104,13 +104,13 @@ void SieveForEveryPartWidget::loadScript(const QDomElement &element, QString &er
if
(
tagValue
==
QLatin1String
(
"name"
))
{
mName
->
setText
(
AutoCreateScriptUtil
::
strValue
(
e
));
}
else
{
error
+=
i18n
(
"Unknown tagValue
\"
%1
\"
during loading loop
\"
for
\"
"
,
tagValue
);
error
+=
i18n
(
"Unknown tagValue
\"
%1
\"
during loading loop
\"
for
\"
"
,
tagValue
)
+
QLatin1Char
(
'\n'
)
;
qCDebug
(
LIBKSIEVE_LOG
)
<<
" SieveForEveryPartWidget::loadScript unknown tagValue "
<<
tagValue
;
}
mForLoop
->
setChecked
(
true
);
mName
->
setEnabled
(
true
);
}
else
{
error
+=
i18n
(
"Unknown tag
\"
%1
\"
during loading loop
\"
for
\"
"
,
tagName
);
error
+=
i18n
(
"Unknown tag
\"
%1
\"
during loading loop
\"
for
\"
"
,
tagName
)
+
QLatin1Char
(
'\n'
)
;
qCDebug
(
LIBKSIEVE_LOG
)
<<
" SieveForEveryPartWidget::loadScript unknown tagName "
<<
tagName
;
}
}
...
...
src/ksieveui/autocreatescripts/sieveglobalvariablewidget.cpp
View file @
be8ae868
...
...
@@ -128,7 +128,7 @@ void SieveGlobalVariableActionWidget::loadScript(const QDomElement &element, QSt
if
(
tagName
==
QLatin1String
(
"str"
))
{
mVariableName
->
setText
(
e
.
text
());
}
else
{
error
+=
i18n
(
"Unknown tag
\"
%1
\"
during loading of variables."
);
error
+=
i18n
(
"Unknown tag
\"
%1
\"
during loading of variables."
)
+
QLatin1Char
(
'\n'
)
;
qCDebug
(
LIBKSIEVE_LOG
)
<<
" SieveGlobalVariableActionWidget::loadScript unknown tagName "
<<
tagName
;
}
}
...
...
src/ksieveui/autocreatescripts/sieveincludewidget.cpp
View file @
be8ae868
...
...
@@ -69,7 +69,7 @@ void SieveIncludeLocation::setCode(const QString &code, QString &error)
if
(
index
!=
-
1
)
{
setCurrentIndex
(
index
);
}
else
{
error
+=
i18n
(
"Unknown location type
\"
%1
\"
during parsing includes"
,
code
);
error
+=
i18n
(
"Unknown location type
\"
%1
\"
during parsing includes"
,
code
)
+
QLatin1Char
(
'\n'
)
;
setCurrentIndex
(
0
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment