Skip to content

Commit

Permalink
MSSQL: enable refresh in schema items
Browse files Browse the repository at this point in the history
  • Loading branch information
elpaso committed Jul 18, 2020
1 parent a775665 commit d466f13
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/providers/mssql/qgsmssqldataitems.cpp
Expand Up @@ -600,6 +600,12 @@ QgsMssqlLayerItem *QgsMssqlSchemaItem::addLayer( const QgsMssqlLayerProperty &la
return layerItem;
}

void QgsMssqlSchemaItem::refresh()
{
if ( parent() )
parent()->refresh();
}


QVector<QgsDataItem *> QgsMssqlLayerItem::createChildren()
{
Expand Down
2 changes: 1 addition & 1 deletion src/providers/mssql/qgsmssqldataitems.h
Expand Up @@ -105,7 +105,7 @@ class QgsMssqlSchemaItem : public QgsDatabaseSchemaItem
QVector<QgsDataItem *> createChildren() override;

QgsMssqlLayerItem *addLayer( const QgsMssqlLayerProperty &layerProperty, bool refresh );
void refresh() override {} // do not refresh directly
void refresh() override; // do not refresh directly (call parent)
void addLayers( QgsDataItem *newLayers );

public:
Expand Down

0 comments on commit d466f13

Please sign in to comment.