Skip to content

Commit

Permalink
Fix #46538, fix misleading warning when uninstalling experimental plu…
Browse files Browse the repository at this point in the history
…gin.
  • Loading branch information
ismailsunni authored and nyalldawson committed Feb 1, 2022
1 parent 3983e14 commit 42df645
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/pyplugin_installer/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -408,7 +408,7 @@ def uninstallPlugin(self, key, quiet=False):
return
if not quiet:
warning = self.tr("Are you sure you want to uninstall the following plugin?") + "\n(" + plugin["name"] + ")"
if plugin["status"] == "orphan" and not plugin["error"]:
if plugin["status"] == "orphan" and plugin["status_exp"] == "orphan" and not plugin["error"]:
warning += "\n\n" + self.tr("Warning: this plugin isn't available in any accessible repository!")
if QMessageBox.warning(iface.mainWindow(), self.tr("QGIS Python Plugin Installer"), warning, QMessageBox.Yes, QMessageBox.No) == QMessageBox.No:
return
Expand Down

0 comments on commit 42df645

Please sign in to comment.