MCPcopy Create free account
hub / github.com/LeFroid/Viper-Browser / removeSearchEngine

Method removeSearchEngine

src/core/search/SearchEngineManager.cpp:96–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

94}
95
96void SearchEngineManager::removeSearchEngine(const QString &name)
97{
98 if (!m_searchEngines.contains(name))
99 return;
100
101 m_searchEngines.remove(name);
102 m_shouldSave = true;
103
104 // Check if we need to assign a new default search engine (will set to first item in hashmap)
105 if (m_defaultEngine.compare(name) == 0)
106 m_defaultEngine = m_searchEngines.begin().key();
107
108 emit engineRemoved(name);
109}
110
111HttpRequest SearchEngineManager::getSearchRequest(const QString &searchTerm, const QString &searchEngineName)
112{

Callers

nothing calls this directly

Calls 2

containsMethod · 0.45
beginMethod · 0.45

Tested by

no test coverage detected