Skip to content

Commit

Permalink
fix biulding issue when WITH_QT_WEBKIT=OFF
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernasocchi authored and m-kuhn committed Nov 12, 2015
1 parent 20a8b37 commit 6b3eddd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/editorwidgets/qgsphotowidgetwrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,11 @@ void QgsPhotoWidgetWrapper::initWidget( QWidget* editor )

bool QgsPhotoWidgetWrapper::valid()
{
#ifdef WITH_QTWEBKIT
return mPhotoLabel || mLineEdit || mButton || mWebView;
#else
return mPhotoLabel || mLineEdit || mButton;
#endif
}

void QgsPhotoWidgetWrapper::setValue( const QVariant& value )
Expand Down

0 comments on commit 6b3eddd

Please sign in to comment.