1
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:
nowrep 2011-10-09 12:11:17 +02:00
parent d097a06b2e
commit cb7ca323fa
2 changed files with 7 additions and 0 deletions

View File

@ -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;

View File

@ -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();