Skip to content
Permalink
Browse files

[browser] Correctly refresh postgres schemas when dropping tables

(cherry-picked from 5a41748)
  • Loading branch information
nyalldawson committed Aug 26, 2016
1 parent 3716478 commit c5aa2e17b80545395bb446ae9035b5165471b174
Showing with 6 additions and 2 deletions.
  1. +6 −2 src/providers/postgres/qgspostgresdataitems.cpp
@@ -691,9 +691,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;
}

// ---------------------------------------------------------------------------

0 comments on commit c5aa2e1

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