Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[relations] Save relation name from add dialog.
And some smaller leftover cleanup
  • Loading branch information
m-kuhn committed Oct 11, 2013
1 parent d384786 commit 58b7199
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 18 deletions.
18 changes: 1 addition & 17 deletions src/gui/qgsrelationmanagerdialog.cpp
Expand Up @@ -110,6 +110,7 @@ void QgsRelationManagerDialog::on_mBtnAddRelation_clicked()
}
relation.setRelationId( relationId );
relation.addFieldPair( addDlg.references().first().first, addDlg.references().first().second );
relation.setRelationName( addDlg.relationName() );

addRelation( relation );
}
Expand All @@ -135,20 +136,3 @@ QList< QgsRelation > QgsRelationManagerDialog::relations()
return relations;
}

#if 0
QTreeWidgetItem* QgsRelationManagerDialog::findLayerItem( QString id )
{
int count = mRelationsTreeWdg->topLevelItemCount();

for ( int i = 0; i < count; ++i )
{
QTreeWidgetItem* item = mRelationsTreeWdg->topLevelItem( i );
if ( item->data( 0, Qt::UserRole ).toString() == id )
{
return item;
}
}

return NULL;
}
#endif
1 change: 0 additions & 1 deletion src/gui/qgsrelationmanagerdialog.h
Expand Up @@ -43,7 +43,6 @@ class GUI_EXPORT QgsRelationManagerDialog : public QWidget, private Ui::QgsRelat

private:
QgsRelationManager* mRelationManager;
// QgsRelationManagerTreeModel* mRelationTreeModel;
QList< QgsVectorLayer* > mLayers;
};

Expand Down

0 comments on commit 58b7199

Please sign in to comment.