Commit 54076474 authored by Laurent Montel's avatar Laurent Montel 😁

Fix warning "==" vs "==="

parent ab69d6ee
......@@ -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 {
......
......@@ -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) } );
......
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