diff --git a/src/lib/app/qupzilla.cpp b/src/lib/app/qupzilla.cpp
index 29f6f9791..9b2b968d0 100644
--- a/src/lib/app/qupzilla.cpp
+++ b/src/lib/app/qupzilla.cpp
@@ -566,6 +566,7 @@ void QupZilla::loadSettings()
settings.beginGroup("Browser-View-Settings");
bool showStatusBar = settings.value("showStatusBar", true).toBool();
bool showHomeIcon = settings.value("showHomeButton", true).toBool();
+ bool showWebSearchBar = settings.value("showWebSearchBar", true).toBool();
bool showBackForwardIcons = settings.value("showBackForwardButtons", true).toBool();
bool showBookmarksToolbar = settings.value("showBookmarksToolbar", true).toBool();
bool showNavigationToolbar = settings.value("showNavigationToolbar", true).toBool();
@@ -591,6 +592,7 @@ void QupZilla::loadSettings()
m_navigationBar->buttonHome()->setVisible(showHomeIcon);
m_navigationBar->buttonBack()->setVisible(showBackForwardIcons);
m_navigationBar->buttonNext()->setVisible(showBackForwardIcons);
+ m_navigationBar->searchLine()->setVisible(showWebSearchBar);
m_navigationBar->buttonAddTab()->setVisible(showAddTab);
m_sideBarManager->showSideBar(activeSideBar, false);
diff --git a/src/lib/preferences/preferences.cpp b/src/lib/preferences/preferences.cpp
index cb9a3e939..68d5fc96e 100644
--- a/src/lib/preferences/preferences.cpp
+++ b/src/lib/preferences/preferences.cpp
@@ -152,6 +152,7 @@ Preferences::Preferences(QupZilla* mainClass, QWidget* parent)
ui->showHome->setChecked(settings.value("showHomeButton", true).toBool());
ui->showBackForward->setChecked(settings.value("showBackForwardButtons", true).toBool());
ui->showAddTabButton->setChecked(settings.value("showAddTabButton", false).toBool());
+ ui->showWebSearchBar->setChecked(settings.value("showWebSearchBar", true).toBool());
ui->useTransparentBg->setChecked(settings.value("useTransparentBackground", false).toBool());
settings.endGroup();
#ifdef Q_WS_WIN
@@ -762,6 +763,7 @@ void Preferences::saveSettings()
settings.setValue("showNavigationToolbar", ui->showNavigationToolbar->isChecked());
settings.setValue("showHomeButton", ui->showHome->isChecked());
settings.setValue("showBackForwardButtons", ui->showBackForward->isChecked());
+ settings.setValue("showWebSearchBar", ui->showWebSearchBar->isChecked());
settings.setValue("useTransparentBackground", ui->useTransparentBg->isChecked());
settings.setValue("showAddTabButton", ui->showAddTabButton->isChecked());
settings.endGroup();
diff --git a/src/lib/preferences/preferences.ui b/src/lib/preferences/preferences.ui
index 5e3718faf..b45f63466 100644
--- a/src/lib/preferences/preferences.ui
+++ b/src/lib/preferences/preferences.ui
@@ -495,6 +495,19 @@
+ -
+
+
+ Qt::Horizontal
+
+
+
+ 40
+ 20
+
+
+
+
-
-
@@ -520,19 +533,6 @@
- -
-
-
- Qt::Horizontal
-
-
-
- 40
- 20
-
-
-
-
-
@@ -554,21 +554,21 @@
- -
+
-
Show Add Tab button
- -
+
-
<b>Background<b/>
- -
+
-
Qt::Vertical
@@ -581,13 +581,20 @@
- -
+
-
Use transparent background
+ -
+
+
+ Show web search bar
+
+
+