mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
[Cookie Manager] Reset search text on refresh.
This commit is contained in:
parent
e934af92bf
commit
c41e17611a
@ -158,6 +158,10 @@ void CookieManager::currentItemChanged(QTreeWidgetItem* current, QTreeWidgetItem
|
||||
|
||||
void CookieManager::refreshTable()
|
||||
{
|
||||
disconnect(ui->search, SIGNAL(textChanged(QString)), ui->cookieTree, SLOT(filterString(QString)));
|
||||
ui->search->clear();
|
||||
connect(ui->search, SIGNAL(textChanged(QString)), ui->cookieTree, SLOT(filterString(QString)));
|
||||
|
||||
QTimer::singleShot(0, this, SLOT(slotRefreshTable()));
|
||||
QTimer::singleShot(0, this, SLOT(slotRefreshFilters()));
|
||||
}
|
||||
|
@ -326,7 +326,7 @@ QList<QTreeWidgetItem*> TreeWidget::allItems()
|
||||
return m_allTreeItems;
|
||||
}
|
||||
|
||||
void TreeWidget::filterString(QString string)
|
||||
void TreeWidget::filterString(const QString &string)
|
||||
{
|
||||
expandAll();
|
||||
QList<QTreeWidgetItem*> _allItems = allItems();
|
||||
|
@ -55,7 +55,7 @@ signals:
|
||||
void folderParentChanged(const QString &name, bool isSubfolder, bool* ok);
|
||||
|
||||
public slots:
|
||||
void filterString(QString string);
|
||||
void filterString(const QString &string);
|
||||
void clear();
|
||||
|
||||
private slots:
|
||||
|
Loading…
Reference in New Issue
Block a user