@@ -68,7 +68,6 @@ QgsPluginManager::QgsPluginManager( QWidget *parent, bool pluginsAreEnabled, Qt:
68
68
mPythonUtils = nullptr ;
69
69
70
70
setupUi ( this );
71
- connect ( vwPlugins, &QListView::clicked, this , &QgsPluginManager::vwPlugins_clicked );
72
71
connect ( vwPlugins, &QListView::doubleClicked, this , &QgsPluginManager::vwPlugins_doubleClicked );
73
72
connect ( wvDetails, &QgsWebView::linkClicked, this , &QgsPluginManager::wvDetails_linkClicked );
74
73
connect ( leFilter, &QgsFilterLineEdit::textChanged, this , &QgsPluginManager::leFilter_textChanged );
@@ -1241,31 +1240,13 @@ void QgsPluginManager::setCurrentTab( int idx )
1241
1240
1242
1241
1243
1242
void QgsPluginManager::currentPluginChanged ( const QModelIndex &index )
1244
- {
1245
- if ( index .column () == 0 )
1246
- {
1247
- // Do exactly the same as if a plugin was clicked
1248
- vwPlugins_clicked ( index );
1249
- }
1250
- }
1251
-
1252
-
1253
-
1254
- void QgsPluginManager::vwPlugins_clicked ( const QModelIndex &index )
1255
1243
{
1256
1244
if ( index .column () == 0 )
1257
1245
{
1258
1246
// If the model has been filtered, the index row in the proxy won't match the index row in the underlying model
1259
1247
// so we need to jump through this little hoop to get the correct item
1260
1248
QModelIndex realIndex = mModelProxy ->mapToSource ( index );
1261
1249
QStandardItem *mypItem = mModelPlugins ->itemFromIndex ( realIndex );
1262
- if ( !mypItem->isEnabled () )
1263
- {
1264
- // The item is inactive (uncompatible or broken plugin), so it can't be selected. Display it's data anyway.
1265
- vwPlugins->clearSelection ();
1266
- }
1267
- // Display details in any case: selection changed, inactive button clicked,
1268
- // or previously selected plugin clicked (while details view contains the welcome message for a category)
1269
1250
showPluginDetails ( mypItem );
1270
1251
}
1271
1252
}
0 commit comments