Skip to content
Permalink
Browse files

MSSQL: enable refresh in schema items

  • Loading branch information
elpaso committed Jul 18, 2020
1 parent a775665 commit d466f133658ee7ea790a43df6862bd4990867d62
Showing with 7 additions and 1 deletion.
  1. +6 −0 src/providers/mssql/qgsmssqldataitems.cpp
  2. +1 −1 src/providers/mssql/qgsmssqldataitems.h
@@ -600,6 +600,12 @@ QgsMssqlLayerItem *QgsMssqlSchemaItem::addLayer( const QgsMssqlLayerProperty &la
return layerItem;
}

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


QVector<QgsDataItem *> QgsMssqlLayerItem::createChildren()
{
@@ -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:

0 comments on commit d466f13

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