mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
[RAPPS] Don't ask for 'remote from registry' when no selection (#6267)
Based on KRosUser's RAPPS.patch. JIRA issue: CORE-19409 If m_ApplicationView->GetFocusedItemData was NULL, then do not ask for removal.
This commit is contained in:
parent
a70ce994f0
commit
a842a92260
1 changed files with 4 additions and 6 deletions
|
@ -270,14 +270,12 @@ CMainWindow::RemoveSelectedAppFromRegistry()
|
|||
if (!szMsgText.LoadStringW(IDS_APP_REG_REMOVE) || !szMsgTitle.LoadStringW(IDS_INFORMATION))
|
||||
return FALSE;
|
||||
|
||||
if (MessageBoxW(szMsgText, szMsgTitle, MB_YESNO | MB_ICONQUESTION) == IDYES)
|
||||
{
|
||||
CAppInfo *InstalledApp = (CAppInfo *)m_ApplicationView->GetFocusedItemData();
|
||||
if (!InstalledApp)
|
||||
return FALSE;
|
||||
CAppInfo *InstalledApp = (CAppInfo *)m_ApplicationView->GetFocusedItemData();
|
||||
if (!InstalledApp)
|
||||
return FALSE;
|
||||
|
||||
if (MessageBoxW(szMsgText, szMsgTitle, MB_YESNO | MB_ICONQUESTION) == IDYES)
|
||||
return m_Db->RemoveInstalledAppFromRegistry(InstalledApp);
|
||||
}
|
||||
|
||||
return FALSE;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue