mirror of
https://invent.kde.org/network/falkon.git
synced 2024-12-20 18:56: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()));
|
connect(this, SIGNAL(itemChanged(QTreeWidgetItem*,int)), this, SLOT(sheduleRefresh()));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void TreeWidget::clear()
|
||||||
|
{
|
||||||
|
QTreeWidget::clear();
|
||||||
|
m_allTreeItems.clear();
|
||||||
|
}
|
||||||
|
|
||||||
void TreeWidget::sheduleRefresh()
|
void TreeWidget::sheduleRefresh()
|
||||||
{
|
{
|
||||||
m_refreshAllItemsNeeded = true;
|
m_refreshAllItemsNeeded = true;
|
||||||
|
@ -47,6 +47,7 @@ signals:
|
|||||||
|
|
||||||
public slots:
|
public slots:
|
||||||
void filterString(QString string);
|
void filterString(QString string);
|
||||||
|
void clear();
|
||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void sheduleRefresh();
|
void sheduleRefresh();
|
||||||
|
Loading…
Reference in New Issue
Block a user