From 2e25741a22962f9c99fa06d589b7bff0054a1bb2 Mon Sep 17 00:00:00 2001 From: Rajendra Singh Date: Sat, 27 Apr 2019 22:18:49 +0530 Subject: [PATCH] Fix all plugins being removed problem while Plugin Admin romoves an old plugin (of old system). Fix #5576, fix #5279, close #5593 --- .../src/WinControls/PluginsAdmin/pluginsAdmin.cpp | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp index d0868c1b1..d1aa19849 100644 --- a/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp +++ b/PowerEditor/src/WinControls/PluginsAdmin/pluginsAdmin.cpp @@ -487,7 +487,17 @@ bool PluginsAdminDlg::exitToInstallRemovePlugins(Operation op, const vector_folderName; + generic_string folderName = i->_folderName; + if (folderName.empty()) + { + auto lastindex = i->_displayName.find_last_of(TEXT(".")); + if (lastindex != generic_string::npos) + folderName = i->_displayName.substr(0, lastindex); + else + folderName = i->_displayName; // This case will never occur, but in case if it occurs too + // just putting the plugin name, so that whole plugin system is not screewed. + } + updaterParams += folderName; updaterParams += TEXT("\""); } }