diff --git a/examples/quick/controls/gallery/content/Styles.qml b/examples/quick/controls/gallery/content/Styles.qml
index 97797f838f76474fbdfd885e0ca471dee36e9f3f..3a7d2bfd2ac8de9c4ba7e4ea46410070a28135b7 100644
--- a/examples/quick/controls/gallery/content/Styles.qml
+++ b/examples/quick/controls/gallery/content/Styles.qml
@@ -63,7 +63,6 @@ Item {
         Button {
             text: "Push me"
             style: ButtonStyle { }
-            onClicked: colorDialog.open()
             implicitWidth: columnWidth
         }
         Button {