Skip to content

Commit 6b3eddd

Browse files
mbernasocchim-kuhn
authored andcommitted
fix biulding issue when WITH_QT_WEBKIT=OFF
1 parent 20a8b37 commit 6b3eddd

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/gui/editorwidgets/qgsphotowidgetwrapper.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,11 @@ void QgsPhotoWidgetWrapper::initWidget( QWidget* editor )
188188

189189
bool QgsPhotoWidgetWrapper::valid()
190190
{
191+
#ifdef WITH_QTWEBKIT
191192
return mPhotoLabel || mLineEdit || mButton || mWebView;
193+
#else
194+
return mPhotoLabel || mLineEdit || mButton;
195+
#endif
192196
}
193197

194198
void QgsPhotoWidgetWrapper::setValue( const QVariant& value )

0 commit comments

Comments
 (0)