QmlDesigner: Fix material browser context menu open issue

Allow opening material browser context menu when search is empty.

Fixes: QDS-7837
Change-Id: I473b62d1f1b94a42d5c60f0e06a6d2b76b74ca6d
Reviewed-by: <github-actions-qt-creator@cristianadam.eu>
Reviewed-by: Samuel Ghinet <samuel.ghinet@qt.io>
Reviewed-by: Mahmoud Badri <mahmoud.badri@qt.io>
This commit is contained in:
Mahmoud Badri
2022-10-03 12:34:38 +03:00
parent 599c882057
commit 9dda372b7a

View File

@@ -310,10 +310,8 @@ Item {
height: root.cellHeight
onShowContextMenu: {
if (searchBox.isEmpty()) {
root.currentMaterial = model
cxtMenu.popup()
}
root.currentMaterial = model
cxtMenu.popup()
}
}
}
@@ -371,10 +369,8 @@ Item {
height: root.cellHeight
onShowContextMenu: {
if (searchBox.isEmpty()) {
root.currentBundleMaterial = modelData
cxtMenuBundle.popup()
}
root.currentBundleMaterial = modelData
cxtMenuBundle.popup()
}
}
}