Skip to content

Commit c5388c1

Browse files
kenmcgaughKen McGaugh
authored andcommitted
Small fixes to avoid benign QML warnings.
Signed-off-by: Ken McGaugh <[email protected]>
1 parent acfc5c9 commit c5388c1

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/plugin/viewport_overlay/media_metadata_hud/src/qml/MediaMetadataHUD.1/MediaMetadataViewer.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ Item {
151151
}
152152
property var backendV: search_string
153153
onBackendVChanged: {
154-
if (backendV != text) {
154+
if (backendV != undefined && backendV != text) {
155155
text = backendV
156156
}
157157
}

src/plugin/viewport_overlay/media_metadata_hud/src/qml/MediaMetadataHUD.1/MetadataGroup.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ Item {
6060
visible: select_mode
6161
Layout.preferredHeight: rowHeight
6262
Layout.preferredWidth: rowHeight
63-
property var checkedOverride: profile_field_paths.includes(path)
63+
property var checkedOverride: profile_field_paths == undefined ? false : profile_field_paths.includes(path)
6464
onCheckedOverrideChanged: {
6565
// when you click, qml sets checked and kills any
6666
// binding we try to set-up on that attr

ui/qml/xstudio/views/media/list_view/data_indicators/XsMediaTextItem.qml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ Item{
88

99
id: dateDiv
1010
property var leftMargin: 12
11-
property var text
11+
property var text: "null"
1212
property var isIndex: false
1313
property bool showBorder: actorUuidRole == currentPlayhead.mediaUuid
1414

ui/qml/xstudio/views/python/XsPythonPanel.qml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ Item{
163163
// add history, ctrl-d. ctrl-c
164164
focus: true
165165

166-
Keys.onReturnPressed: {
166+
Keys.onReturnPressed: function(event) {
167167
// get last line.
168168
// only capute after first 4 chars
169169
if(event.modifiers == Qt.ControlModifier) {
@@ -221,7 +221,7 @@ Item{
221221
paste()
222222
}
223223

224-
Keys.onPressed: {
224+
Keys.onPressed: function(event) {
225225
if ((event.key == Qt.Key_C) && (event.modifiers & Qt.ControlModifier)) {
226226
embeddedPython.sendInterrupt()
227227
event.accepted = true;

0 commit comments

Comments
 (0)