mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 02:36:34 +01:00
Fixed crash when clearing history and then showing library windows again
This commit is contained in:
parent
d097a06b2e
commit
cb7ca323fa
@ -25,6 +25,12 @@ TreeWidget::TreeWidget(QWidget* parent) :
|
||||
connect(this, SIGNAL(itemChanged(QTreeWidgetItem*,int)), this, SLOT(sheduleRefresh()));
|
||||
}
|
||||
|
||||
void TreeWidget::clear()
|
||||
{
|
||||
QTreeWidget::clear();
|
||||
m_allTreeItems.clear();
|
||||
}
|
||||
|
||||
void TreeWidget::sheduleRefresh()
|
||||
{
|
||||
m_refreshAllItemsNeeded = true;
|
||||
|
@ -47,6 +47,7 @@ signals:
|
||||
|
||||
public slots:
|
||||
void filterString(QString string);
|
||||
void clear();
|
||||
|
||||
private slots:
|
||||
void sheduleRefresh();
|
||||
|
Loading…
Reference in New Issue
Block a user