Skip to content
Permalink
Browse files

remove debug log

  • Loading branch information
signedav committed Sep 17, 2018
1 parent bfe2fbc commit 44334858a51b2267f25a517507654c00540e67c2
Showing with 1 addition and 7 deletions.
  1. +1 −7 src/gui/editorwidgets/qgsrelationwidgetwrapper.cpp
@@ -19,8 +19,6 @@
#include "qgsattributeeditorcontext.h"
#include "qgsproject.h"
#include "qgsrelationmanager.h"
#undef QGISDEBUG
#include "qgslogger.h"
#include <QWidget>

QgsRelationWidgetWrapper::QgsRelationWidgetWrapper( QgsVectorLayer *vl, const QgsRelation &relation, QWidget *editor, QWidget *parent )
@@ -52,18 +50,14 @@ void QgsRelationWidgetWrapper::aboutToSave()
if ( !mRelation.isValid() || !widget() || !widget()->isVisible() || mRelation.referencingLayer()->name() == mRelation.referencedLayer()->name() )
return;


QgsDebugMsg( QString( "2. Rel Name: %1, ParentLayer: %2 ChildLayer: %3" ).arg( mRelation.name(), mRelation.referencedLayer()->name(), mRelation.referencingLayer()->name() ) );

// If this widget is already embedded by the same relation, reduce functionality
// If the layer is already saved before, return
const QgsAttributeEditorContext *ctx = &context();
do
{
if ( ctx->relation().isValid() && ( ctx->relation().referencedLayer()->name() == mRelation.referencingLayer()->name()
|| ctx->relation().referencedLayer()->name() == mNmRelation.referencedLayer()->name() )
)
{
QgsDebugMsg( QString( "- Layer %1 allready occured in the relation %2 as referenced layer" ).arg( mRelation.referencingLayer()->name(), ctx->relation().name() ) );
return;
}
ctx = ctx->parentContext();

0 comments on commit 4433485

Please sign in to comment.
You can’t perform that action at this time.