diff --git a/share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBrowser.qml b/share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBrowser.qml index d783a9bb056..b8712a9e657 100644 --- a/share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBrowser.qml +++ b/share/qtcreator/qmldesigner/materialBrowserQmlSource/MaterialBrowser.qml @@ -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() } } }