Fix all plugins being removed problem while Plugin Admin romoves an old plugin (of old system).

Fix #5576, fix #5279, close #5593
pull/5659/head
Rajendra Singh 6 years ago committed by Don HO
parent f07ae664b4
commit 2e25741a22
No known key found for this signature in database
GPG Key ID: 6C429F1D8D84F46E

@ -487,7 +487,17 @@ bool PluginsAdminDlg::exitToInstallRemovePlugins(Operation op, const vector<Plug
{
// add folder to operate
updaterParams += TEXT(" \"");
updaterParams += i->_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("\"");
}
}

Loading…
Cancel
Save