mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
bug 395140: leave preferred app as-is when the user sets the action for a type to something other than useHelperApp in Applications prefpane; r=gavin, a=mconnor
This commit is contained in:
parent
7888cc075a
commit
c1b55b8a66
@ -1320,15 +1320,13 @@ var gApplicationsPane = {
|
||||
handlerInfo.disablePluginType();
|
||||
|
||||
// Set the preferred application handler.
|
||||
// FIXME: consider leaving the existing preferred app in the list
|
||||
// when we set the preferred action to something other than useHelperApp
|
||||
// so that legacy datastores that don't have the preferred app in the list
|
||||
// We leave the existing preferred app in the list when we set
|
||||
// the preferred action to something other than useHelperApp so that
|
||||
// legacy datastores that don't have the preferred app in the list
|
||||
// of possible apps still include the preferred app in the list of apps
|
||||
// the user can use to handle the type. Filed as bug 395140.
|
||||
// the user can choose to handle the type.
|
||||
if (action == Ci.nsIHandlerInfo.useHelperApp)
|
||||
handlerInfo.preferredApplicationHandler = actionItem.handlerApp;
|
||||
else
|
||||
handlerInfo.preferredApplicationHandler = null;
|
||||
|
||||
// Set the "always ask" flag.
|
||||
handlerInfo.alwaysAskBeforeHandling = false;
|
||||
|
Loading…
Reference in New Issue
Block a user