Skip to content

Commit a67f57e

Browse files
committed
[browser] Correctly refresh postgres schemas when dropping tables
(cherry-picked from 5a41748)
1 parent 923bd5a commit a67f57e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/providers/postgres/qgspostgresdataitems.cpp

+6-2
Original file line numberDiff line numberDiff line change
@@ -693,9 +693,13 @@ bool QgsPGSchemaItem::handleDrop( const QMimeData * data, Qt::DropAction )
693693
{
694694
QgsPGConnectionItem *conn = qobject_cast<QgsPGConnectionItem *>( parent() );
695695
if ( !conn )
696-
return 0;
696+
return false;
697+
698+
bool result = conn->handleDrop( data, mName );
699+
if ( result )
700+
refresh();
697701

698-
return conn->handleDrop( data, mName );
702+
return result;
699703
}
700704

701705
// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)