Skip to content

Commit

Permalink
[browser] Correctly refresh postgres schemas when dropping tables
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Aug 22, 2016
1 parent 26dd130 commit 5a41748
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/providers/postgres/qgspostgresdataitems.cpp
Expand Up @@ -692,9 +692,13 @@ bool QgsPGSchemaItem::handleDrop( const QMimeData * data, Qt::DropAction )
{
QgsPGConnectionItem *conn = qobject_cast<QgsPGConnectionItem *>( parent() );
if ( !conn )
return 0;
return false;

bool result = conn->handleDrop( data, mName );
if ( result )
refresh();

return conn->handleDrop( data, mName );
return result;
}

// ---------------------------------------------------------------------------
Expand Down

0 comments on commit 5a41748

Please sign in to comment.