Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Fix "Add" button in database add layer dialogs is sometimes disabled
even when a layer is selected
- Loading branch information
|
@@ -657,10 +657,9 @@ void QgsDb2SourceSelect::setSearchExpression( const QString ®exp ) |
|
|
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 ®exp ) |
|
|
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 ®exp ) |
|
|
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() |
|
|