Skip to content

Commit

Permalink
Fix add button state in postgis source select dialog
Browse files Browse the repository at this point in the history
  • Loading branch information
m-kuhn committed Jun 6, 2016
1 parent 2c3f044 commit 70e1c6a
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/providers/postgres/qgspgsourceselect.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -661,5 +661,6 @@ void QgsPgSourceSelect::setSearchExpression( const QString& regexp )
void QgsPgSourceSelect::treeWidgetSelectionChanged( const QItemSelection &selected, const QItemSelection &deselected )
{
Q_UNUSED( deselected )
mAddButton->setEnabled( !selected.isEmpty() );
Q_UNUSED( selected )
mAddButton->setEnabled( !mTablesTreeView->selectionModel()->selection().isEmpty() );
}

0 comments on commit 70e1c6a

Please sign in to comment.