Showing with 3 additions and 19 deletions.
  1. +3 −2 src/app/qgsidentifyresults.cpp
  2. +0 −17 src/ui/qgswmssourceselectbase.ui
5 changes: 3 additions & 2 deletions src/app/qgsidentifyresults.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -457,6 +457,8 @@ void QgsIdentifyResults::contextMenuEvent( QContextMenuEvent* event )
{
mActionPopup->addSeparator();

int featIdx = featItem->data( 0, Qt::UserRole + 1 ).toInt();

// The assumption is made that an instance of QgsIdentifyResults is
// created for each new Identify Results dialog box, and that the
// contents of the popup menu doesn't change during the time that
Expand All @@ -468,8 +470,7 @@ void QgsIdentifyResults::contextMenuEvent( QContextMenuEvent* event )
if ( !action.runable() )
continue;

int idx = featItem->data( 0, Qt::UserRole + 1 ).toInt();
QgsFeatureAction *a = new QgsFeatureAction( action.name(), mFeatures[ idx ], vlayer, i, idx, this );
QgsFeatureAction *a = new QgsFeatureAction( action.name(), mFeatures[ featIdx ], vlayer, i, idx, this );
mActionPopup->addAction( QgisApp::getThemeIcon( "/mAction.png" ), action.name(), a, SLOT( execute() ) );
}
}
Expand Down
17 changes: 0 additions & 17 deletions src/ui/qgswmssourceselectbase.ui
Original file line number Diff line number Diff line change
Expand Up @@ -243,23 +243,6 @@
</layout>
</widget>
</item>
<item row="1" column="9">
<widget class="QPushButton" name="btnSave">
<property name="text">
<string>Save</string>
</property>
</widget>
</item>
<item row="1" column="8">
<widget class="QPushButton" name="btnLoad">
<property name="toolTip">
<string>Load connections from file</string>
</property>
<property name="text">
<string>Load</string>
</property>
</widget>
</item>
</layout>
</widget>
<widget class="QWidget" name="tabLayerOrder">
Expand Down