mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 18:15:11 +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))
|
if (!szMsgText.LoadStringW(IDS_APP_REG_REMOVE) || !szMsgTitle.LoadStringW(IDS_INFORMATION))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
if (MessageBoxW(szMsgText, szMsgTitle, MB_YESNO | MB_ICONQUESTION) == IDYES)
|
CAppInfo *InstalledApp = (CAppInfo *)m_ApplicationView->GetFocusedItemData();
|
||||||
{
|
if (!InstalledApp)
|
||||||
CAppInfo *InstalledApp = (CAppInfo *)m_ApplicationView->GetFocusedItemData();
|
return FALSE;
|
||||||
if (!InstalledApp)
|
|
||||||
return FALSE;
|
|
||||||
|
|
||||||
|
if (MessageBoxW(szMsgText, szMsgTitle, MB_YESNO | MB_ICONQUESTION) == IDYES)
|
||||||
return m_Db->RemoveInstalledAppFromRegistry(InstalledApp);
|
return m_Db->RemoveInstalledAppFromRegistry(InstalledApp);
|
||||||
}
|
|
||||||
|
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue