mirror of
https://github.com/keepassxreboot/keepassxc.git
synced 2025-02-17 21:04:19 -05:00
Add some asserts.
This commit is contained in:
parent
57aef7f1ec
commit
182258761f
@ -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…
x
Reference in New Issue
Block a user