mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
Update src/app/browser/qgsinbuiltdataitemproviders.cpp
Co-authored-by: Stefanos Natsis <uclaros@gmail.com>
This commit is contained in:
parent
2093f48b47
commit
d42c26af90
@ -1860,7 +1860,9 @@ void QgsDatabaseItemGuiProvider::populateContextMenu( QgsDataItem *item, QMenu *
|
|||||||
} );
|
} );
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( conn && conn->capabilities().testFlag( QgsAbstractDatabaseProviderConnection::Capability::MoveTableToSchema ) )
|
// Move to schema should not be available for connections and schemata
|
||||||
|
const bool isTable = qobject_cast<QgsLayerItem *>( item );
|
||||||
|
if ( isTable && conn && conn->capabilities().testFlag( QgsAbstractDatabaseProviderConnection::Capability::MoveTableToSchema ) )
|
||||||
{
|
{
|
||||||
QAction *moveToSchemaAction = new QAction( tr( "Move to Another Schema…" ), menu );
|
QAction *moveToSchemaAction = new QAction( tr( "Move to Another Schema…" ), menu );
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user