A threatened lawsuit has killed CBS’s pilot for “Quean.”

In an effort to avoid legal action, production studio Warner Bros. TV is ditching its drama pilot about a crime-solving girl hacker who teams up with a male police detective, according to industry gossip site deadline.com.

After receiving a letter from Sony Pictures, the movie studio behind “The Girl With the Dragon Tattoo,” threatening legal action over similarities between the proposed series and the hit movie franchise starring Rooney Mara, Warner Bros. TV tried to save the series by reworking the pilot script.

While CBS execs are said to have been happy with “Quean” writer Ilene Chaiken’s (“The L Word”) changes — including turning the white male cop into a black female lawyer and giving the loner hacker a boyfriend — Warner Bros. TV lawyer’s still put the kibosh on it, because the series is based around a hacker.