Skip to content

Commit 5a41748

Browse files
committed
[browser] Correctly refresh postgres schemas when dropping tables
1 parent 26dd130 commit 5a41748

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/providers/postgres/qgspostgresdataitems.cpp

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -692,9 +692,13 @@ bool QgsPGSchemaItem::handleDrop( const QMimeData * data, Qt::DropAction )
692692
{
693693
QgsPGConnectionItem *conn = qobject_cast<QgsPGConnectionItem *>( parent() );
694694
if ( !conn )
695-
return 0;
695+
return false;
696+
697+
bool result = conn->handleDrop( data, mName );
698+
if ( result )
699+
refresh();
696700

697-
return conn->handleDrop( data, mName );
701+
return result;
698702
}
699703

700704
// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)