mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 22:01:30 +00:00
[Bug 121003] Silly code checks for if (interfaceName) instead of if (instanceName)
r=bzbarsky sr=brendan@mozilla.org a=brendan@mozilla.org
This commit is contained in:
parent
e24c04e22a
commit
518e4ed3ef
@ -533,7 +533,7 @@ void UpdateUI(nsIWebBrowserChrome *aChrome)
|
||||
PRBool canPaste = PR_FALSE;
|
||||
|
||||
nsCOMPtr<nsIClipboardCommands> clipCmds = do_GetInterface(webBrowser);
|
||||
if (nsIClipboardCommands)
|
||||
if (clipCmds)
|
||||
{
|
||||
clipCmds->CanCutSelection(&canCutSelection);
|
||||
clipCmds->CanCopySelection(&canCopySelection);
|
||||
|
Loading…
Reference in New Issue
Block a user