Fix all plugins being removed problem while Plugin Admin romoves an old plugin (of old system).
Fix #5576, fix #5279, close #5593
This commit is contained in:
parent
f07ae664b4
commit
2e25741a22
@ -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…
Reference in New Issue
Block a user