diff --git a/src/gui/DatabaseWidget.cpp b/src/gui/DatabaseWidget.cpp index 1952c612b..ae1f2f6e8 100644 --- a/src/gui/DatabaseWidget.cpp +++ b/src/gui/DatabaseWidget.cpp @@ -503,10 +503,12 @@ void DatabaseWidget::showSearch() Q_ASSERT(m_lastGroup); if (m_lastGroup == m_db->rootGroup()) { + m_searchUi->optionsWidget->hide(); m_searchUi->searchCurrentRadioButton->hide(); m_searchUi->searchRootRadioButton->hide(); } else { + m_searchUi->optionsWidget->show(); m_searchUi->searchCurrentRadioButton->show(); m_searchUi->searchRootRadioButton->show(); m_searchUi->searchCurrentRadioButton->setText(tr("Current group") diff --git a/src/gui/SearchWidget.ui b/src/gui/SearchWidget.ui index 249d5bdb7..2adbe0796 100644 --- a/src/gui/SearchWidget.ui +++ b/src/gui/SearchWidget.ui @@ -10,7 +10,13 @@ 87 - + + + 0 + + + + @@ -32,36 +38,51 @@ - - - - - - - - Case sensitive - - - - - - - Current group - - - true - - - - - - - Root group - - - - + + + + 0 + + + + + Case sensitive + + + + + + + Current group + + + true + + + + + + + Root group + + + + + + + Qt::Horizontal + + + + 255 + 1 + + + + + +