mirror of
https://invent.kde.org/network/falkon.git
synced 2024-11-11 09:32:12 +01:00
Fixed google suggestions in websearch bar.
- you may need to click "Defaults" to add Google with correct suggestions url template - also improved behaviour when opening NewBackgroundTab if it is opened from pinned tab. It will be opened after last pinned tab, to prevent opening normal tabs between pinned ones.
This commit is contained in:
parent
3a2ceeab31
commit
7f43333fbf
|
@ -112,7 +112,7 @@ void SearchEnginesManager::restoreDefaults()
|
|||
google.icon = QIcon(":icons/menu/google.png");
|
||||
google.url = "http://www.google.com/search?client=qupzilla&q=%s";
|
||||
google.shortcut = "g";
|
||||
google.suggestionsUrl = "http://suggestqueries.google.com/complete/search?json=t&q=%s&nolabels=t";
|
||||
google.suggestionsUrl = "http://suggestqueries.google.com/complete/search?output=firefox&q=%s";
|
||||
|
||||
Engine wiki;
|
||||
wiki.name = "Wikipedia (en)";
|
||||
|
|
|
@ -249,7 +249,9 @@ int TabWidget::addView(QUrl url, const QString &title, OpenUrlIn openIn, bool se
|
|||
}
|
||||
|
||||
if (openIn == NewBackgroundTab) {
|
||||
position = currentIndex() + 1;
|
||||
// If we are opening newBgTab from pinned tab, make sure it won't be
|
||||
// opened between other pinned tabs
|
||||
position = qMax(currentIndex() + 1, m_tabBar->pinnedTabsCount());
|
||||
}
|
||||
|
||||
LocationBar* locBar = new LocationBar(p_QupZilla);
|
||||
|
|
Loading…
Reference in New Issue
Block a user