Hide video torch setting when front camera is active
[harmattan/cameraplus] / declarative / videosettings.cpp
index b2b6e8f..ec29a7a 100644 (file)
@@ -88,7 +88,6 @@ VideoResolutionModel *VideoSettings::resolutions() {
     return 0;
   }
 
-
   if (!m_resolutions) {
     m_resolutions = new VideoResolutionModel(m_settings, this);
   }
@@ -97,7 +96,7 @@ VideoResolutionModel *VideoSettings::resolutions() {
 }
 
 bool VideoSettings::isReady() const {
-  return m_settings;
+  return m_settings != 0;
 }
 
 bool VideoSettings::setResolution(const QString& aspectRatio, const QString& resolution) {