Set the model only after we have changed the aspect ratio
authorMohammed Sameer <msameer@foolab.org>
Thu, 14 Feb 2013 00:22:22 +0000 (02:22 +0200)
committerMohammed Sameer <msameer@foolab.org>
Thu, 14 Feb 2013 00:22:22 +0000 (02:22 +0200)
qml/ImageResolutionSettings.qml

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