Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fix crash when opening form with joined attributes
Fixes #44768
  • Loading branch information
nyalldawson committed Aug 23, 2021
1 parent d61284b commit 27bd854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/gui/editorwidgets/core/qgseditorwidgetwrapper.cpp
Expand Up @@ -288,5 +288,6 @@ bool QgsEditorWidgetWrapper::isInTable( const QWidget *parent )

void QgsEditorWidgetWrapper::setHint( const QString &hintText )
{
widget()->setToolTip( hintText );
if ( QWidget *w = widget() )
w->setToolTip( hintText );
}
3 changes: 2 additions & 1 deletion src/gui/editorwidgets/qgstexteditwrapper.cpp
Expand Up @@ -372,5 +372,6 @@ void QgsTextEditWrapper::setHint( const QString &hintText )
mPlaceholderText = hintText;
}

mLineEdit->setPlaceholderText( mPlaceholderText );
if ( mLineEdit )
mLineEdit->setPlaceholderText( mPlaceholderText );
}

0 comments on commit 27bd854

Please sign in to comment.