mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-12-21 11:16:08 -05:00
Add some asserts.
This commit is contained in:
parent
57aef7f1ec
commit
182258761f
1 changed files with 5 additions and 0 deletions
|
|
@ -494,6 +494,9 @@ void DatabaseWidget::showSearch()
|
|||
m_searchUi->searchRootRadioButton->blockSignals(false);
|
||||
|
||||
m_lastGroup = m_groupView->currentGroup();
|
||||
|
||||
Q_ASSERT(m_lastGroup);
|
||||
|
||||
if (m_lastGroup == m_db->rootGroup()) {
|
||||
m_searchUi->searchCurrentRadioButton->hide();
|
||||
m_searchUi->searchRootRadioButton->hide();
|
||||
|
|
@ -515,6 +518,8 @@ void DatabaseWidget::showSearch()
|
|||
|
||||
void DatabaseWidget::search()
|
||||
{
|
||||
Q_ASSERT(m_lastGroup);
|
||||
|
||||
Group* searchGroup;
|
||||
if (m_searchUi->searchCurrentRadioButton->isChecked()) {
|
||||
searchGroup = m_lastGroup;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue