Skip to content
Permalink
Browse files

Fix "Add" button in database add layer dialogs is sometimes disabled

even when a layer is selected
  • Loading branch information
nyalldawson committed Oct 4, 2018
1 parent 7ac86d2 commit 64e561cc153078b8cf54c1299563b407cf6bc8f4
@@ -657,10 +657,9 @@ void QgsDb2SourceSelect::setSearchExpression( const QString &regexp )
Q_UNUSED( regexp );
}

void QgsDb2SourceSelect::treeWidgetSelectionChanged( const QItemSelection &selected, const QItemSelection &deselected )
void QgsDb2SourceSelect::treeWidgetSelectionChanged( const QItemSelection &, const QItemSelection & )
{
Q_UNUSED( deselected )
emit enableButtons( !selected.isEmpty() );
emit enableButtons( !mTablesTreeView->selectionModel()->selection().isEmpty() );
}


@@ -739,10 +739,9 @@ void QgsMssqlSourceSelect::setSearchExpression( const QString &regexp )
Q_UNUSED( regexp );
}

void QgsMssqlSourceSelect::treeWidgetSelectionChanged( const QItemSelection &selected, const QItemSelection &deselected )
void QgsMssqlSourceSelect::treeWidgetSelectionChanged( const QItemSelection &, const QItemSelection & )
{
Q_UNUSED( deselected )
emit enableButtons( !selected.isEmpty() );
emit enableButtons( !mTablesTreeView->selectionModel()->selection().isEmpty() );
}

void QgsMssqlSourceSelect::showHelp()
@@ -674,10 +674,9 @@ void QgsOracleSourceSelect::loadTableFromCache()
finishList();
}

void QgsOracleSourceSelect::treeWidgetSelectionChanged( const QItemSelection &selected, const QItemSelection &deselected )
void QgsOracleSourceSelect::treeWidgetSelectionChanged( const QItemSelection &, const QItemSelection & )
{
Q_UNUSED( deselected )
emit enableButtons( !selected.isEmpty() );
emit enableButtons( !mTablesTreeView->selectionModel()->selection().isEmpty() );
}

void QgsOracleSourceSelect::showHelp()
@@ -583,10 +583,9 @@ void QgsSpatiaLiteSourceSelect::setSearchExpression( const QString &regexp )
Q_UNUSED( regexp );
}

void QgsSpatiaLiteSourceSelect::treeWidgetSelectionChanged( const QItemSelection &selected, const QItemSelection &deselected )
void QgsSpatiaLiteSourceSelect::treeWidgetSelectionChanged( const QItemSelection &, const QItemSelection & )
{
Q_UNUSED( deselected )
emit enableButtons( !selected.isEmpty() );
emit enableButtons( !mTablesTreeView->selectionModel()->selection().isEmpty() );
}

void QgsSpatiaLiteSourceSelect::showHelp()

0 comments on commit 64e561c

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