mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-08 00:05:09 -04:00
Merge pull request #62533 from agiudiceandrea/backport-62483-to-release-3_44
[Backport release-3_44] Replace label in contextual menu of SQL History item
This commit is contained in:
commit
a4725c5ae8
@ -164,13 +164,13 @@ class DatabaseQueryRootNode : public DatabaseQueryHistoryNode
|
||||
{
|
||||
if ( QgsDatabaseQueryHistoryWidget *queryHistoryWidget = qobject_cast< QgsDatabaseQueryHistoryWidget * >( context.historyWidget() ) )
|
||||
{
|
||||
QAction *executeAction = new QAction(
|
||||
QObject::tr( "Execute SQL Command…" ), menu
|
||||
QAction *loadAction = new QAction(
|
||||
QObject::tr( "Load SQL Command…" ), menu
|
||||
);
|
||||
QObject::connect( executeAction, &QAction::triggered, menu, [=] {
|
||||
QObject::connect( loadAction, &QAction::triggered, menu, [=] {
|
||||
queryHistoryWidget->emitSqlTriggered( mEntry.entry.value( QStringLiteral( "connection" ) ).toString(), mEntry.entry.value( QStringLiteral( "provider" ) ).toString(), mEntry.entry.value( QStringLiteral( "query" ) ).toString() );
|
||||
} );
|
||||
menu->addAction( executeAction );
|
||||
menu->addAction( loadAction );
|
||||
}
|
||||
|
||||
QAction *copyAction = new QAction(
|
||||
|
Loading…
x
Reference in New Issue
Block a user