Skip to content
Permalink
Browse files
[browser] Correctly refresh postgres schemas when dropping tables
(cherry-picked from 5a41748)
  • Loading branch information
nyalldawson committed Aug 29, 2016
1 parent 923bd5a commit a67f57e
Showing 1 changed file with 6 additions and 2 deletions.
@@ -693,9 +693,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 a67f57e

Please sign in to comment.