mirror of
https://gitlab.linphone.org/BC/public/linphone-desktop.git
synced 2026-01-22 14:18:09 +00:00
fix(ui/scripts/Utils/utils): Qt (5.7.1) crash when a variable in a js file is compared to null
This commit is contained in:
parent
265965dae2
commit
0b4a172582
2 changed files with 6 additions and 6 deletions
|
|
@ -3,7 +3,7 @@ import QtTest 1.1
|
|||
|
||||
import Utils 1.0
|
||||
|
||||
// ===================================================================
|
||||
// =============================================================================
|
||||
|
||||
Rectangle {
|
||||
id: root
|
||||
|
|
@ -54,7 +54,7 @@ Rectangle {
|
|||
compare(spy.count, 0, '`pressed` signal was emitted')
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
function test_randomClickOutsideMouseArea () {
|
||||
Utils.times(50, function () {
|
||||
|
|
@ -80,7 +80,7 @@ Rectangle {
|
|||
})
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
function test_clickInsideMouseArea_data () {
|
||||
return [
|
||||
|
|
@ -98,7 +98,7 @@ Rectangle {
|
|||
compare(spy.count, 0, '`pressed` signal was emitted')
|
||||
}
|
||||
|
||||
// ---------------------------------------------------------------
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
function test_clickOutsideMouseArea_data () {
|
||||
return [
|
||||
|
|
|
|||
|
|
@ -34,7 +34,7 @@ function connectOnce (signal, cb) {
|
|||
function encodeTextToQmlRichFormat (text, options) {
|
||||
var images = ''
|
||||
|
||||
if (options == null) {
|
||||
if (!options) {
|
||||
options = {}
|
||||
}
|
||||
|
||||
|
|
@ -218,7 +218,7 @@ function setTimeout (parent, delay, cb) {
|
|||
// ===================================================================
|
||||
|
||||
function _computeOptimizedCb (func, context) {
|
||||
return (context != null)
|
||||
return context
|
||||
? (function () {
|
||||
return func.apply(context, arguments)
|
||||
}) : func
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue