Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Education
KAlgebra
Commits
54076474
Commit
54076474
authored
Mar 09, 2019
by
Laurent Montel
Browse files
Fix warning "==" vs "==="
parent
ab69d6ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
mobile/plugins/Console.qml
View file @
54076474
...
...
@@ -87,8 +87,8 @@ KAlgebraPage
},
// --
Kirigami.Action
{
text
:
consoleModel
.
mode
==
ConsoleModel
.
Calculate
?
i18n
(
"
Evaluate...
"
)
:
i18n
(
"
Calculate...
"
)
onTriggered
:
consoleModel
.
mode
=
consoleModel
.
mode
==
ConsoleModel
.
Calculate
?
ConsoleModel
.
Evaluate
:
ConsoleModel
.
Calculate
text
:
consoleModel
.
mode
==
=
ConsoleModel
.
Calculate
?
i18n
(
"
Evaluate...
"
)
:
i18n
(
"
Calculate...
"
)
onTriggered
:
consoleModel
.
mode
=
consoleModel
.
mode
==
=
ConsoleModel
.
Calculate
?
ConsoleModel
.
Evaluate
:
ConsoleModel
.
Calculate
},
// --
Kirigami.Action
{
...
...
mobile/plugins/Tables.qml
View file @
54076474
...
...
@@ -43,9 +43,9 @@ KAlgebraPage
}
// console.log("chancho2 (" + ffrom + ", " + fto + " : " + fstep + ") " + ret);
if
(
fstep
==
0
)
{
if
(
fstep
==
=
0
)
{
resultsModel
.
append
(
{
element
:
i18n
(
"
Errors: The step cannot be 0
"
)
}
);
}
else
if
(
ffrom
==
fto
)
{
}
else
if
(
ffrom
==
=
fto
)
{
resultsModel
.
append
(
{
element
:
i18n
(
"
Errors: The start and end are the same
"
)
}
);
}
else
if
(
!
a
.
isCorrect
)
{
resultsModel
.
append
(
{
element
:
i18n
(
"
Errors: %1
"
,
ret
?
ret
:
a
.
errors
)
}
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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