File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -1440,6 +1440,14 @@ QString CredentialsManagement::processMultipleDomainsInput(const QString& servic
14401440 return validDomains.join (MULT_DOMAIN_SEPARATOR );
14411441}
14421442
1443+ bool CredentialsManagement::isUICategoryClean () const
1444+ {
1445+ return ui->lineEditCategory1 ->text () == m_pCredModel->getCategoryName (1 ) &&
1446+ ui->lineEditCategory2 ->text () == m_pCredModel->getCategoryName (2 ) &&
1447+ ui->lineEditCategory3 ->text () == m_pCredModel->getCategoryName (3 ) &&
1448+ ui->lineEditCategory4 ->text () == m_pCredModel->getCategoryName (4 );
1449+ }
1450+
14431451void CredentialsManagement::on_toolButtonFavFilter_clicked ()
14441452{
14451453 bool favFilter = m_pCredModelFilter->switchFavFilter ();
@@ -1479,6 +1487,11 @@ void CredentialsManagement::onCategoryEdited(const QString &edited)
14791487 ui->pushButtonSaveCategories ->show ();
14801488 m_isSetCategoryClean = false ;
14811489 }
1490+ else if (isUICategoryClean ())
1491+ {
1492+ m_isSetCategoryClean = true ;
1493+ ui->pushButtonSaveCategories ->hide ();
1494+ }
14821495}
14831496
14841497void CredentialsManagement::handleAdvancedModeChange (bool isEnabled)
Original file line number Diff line number Diff line change @@ -142,6 +142,8 @@ private slots:
142142
143143 QString processMultipleDomainsInput (const QString& service, const QString &domains);
144144
145+ bool isUICategoryClean () const ;
146+
145147 Ui::CredentialsManagement *ui;
146148 CredentialModel *m_pCredModel = nullptr ;
147149 CredentialModelFilter *m_pCredModelFilter = nullptr ;
You can’t perform that action at this time.
0 commit comments