Skip to content

Commit c5aa2e1

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

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
@@ -691,9 +691,13 @@ bool QgsPGSchemaItem::handleDrop( const QMimeData * data, Qt::DropAction )
691691
{
692692
QgsPGConnectionItem *conn = qobject_cast<QgsPGConnectionItem *>( parent() );
693693
if ( !conn )
694-
return 0;
694+
return false;
695+
696+
bool result = conn->handleDrop( data, mName );
697+
if ( result )
698+
refresh();
695699

696-
return conn->handleDrop( data, mName );
700+
return result;
697701
}
698702

699703
// ---------------------------------------------------------------------------

0 commit comments

Comments
 (0)