Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Relation widget: Don't disable even when containing layer is not in e…
…dit mode
  • Loading branch information
m-kuhn committed Jun 19, 2014
1 parent 73a5dd5 commit 024cd0b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp
Expand Up @@ -26,6 +26,10 @@ QgsRelationWidgetWrapper::QgsRelationWidgetWrapper( QgsVectorLayer* vl, const Qg
{
}

void QgsRelationWidgetWrapper::setEnabled( bool enabled )
{
// Do nothing, we only work on the related table, so no need to disable anything
}

QWidget* QgsRelationWidgetWrapper::createWidget( QWidget* parent )
{
Expand Down
2 changes: 2 additions & 0 deletions src/gui/editorwidgets/qgsrelationwidgetwrapper.h
Expand Up @@ -27,6 +27,8 @@ class GUI_EXPORT QgsRelationWidgetWrapper : public QgsWidgetWrapper
public:
explicit QgsRelationWidgetWrapper( QgsVectorLayer* vl, const QgsRelation& relation, QWidget* editor = 0, QWidget* parent = 0 );

void setEnabled( bool enabled );

protected:
QWidget* createWidget( QWidget* parent );
void initWidget( QWidget* editor );
Expand Down

1 comment on commit 024cd0b

@3nids
Copy link
Member

@3nids 3nids commented on 024cd0b Jun 20, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks, working as expected now!

Please sign in to comment.