Set the model to undefined instead of 0
authorMohammed Sameer <msameer@foolab.org>
Thu, 14 Feb 2013 00:28:50 +0000 (02:28 +0200)
committerMohammed Sameer <msameer@foolab.org>
Thu, 14 Feb 2013 00:28:50 +0000 (02:28 +0200)
qml/ImageResolutionSettings.qml

index 12ebf5f..466ebc6 100644 (file)
@@ -64,7 +64,7 @@ Column {
 
                 Repeater {
                         id: resolutions
-                        model: imageSettings.resolutions.aspectRatio == settings.imageAspectRatio ? imageSettings.resolutions : 0
+                        model: imageSettings.resolutions.aspectRatio == settings.imageAspectRatio ? imageSettings.resolutions : undefined
 
                         delegate: Button {
                                 font.capitalization: Font.Capitalize