From f231da3cefde4e02e440ed2496068173f20ebf9c Mon Sep 17 00:00:00 2001 From: DavidXanatos <3890945+DavidXanatos@users.noreply.github.com> Date: Sat, 4 Feb 2023 14:37:39 +0100 Subject: [PATCH] 1.7.2 --- SandboxiePlus/MiscHelpers/Common/Finder.cpp | 3 ++- SandboxiePlus/SandMan/Views/TraceView.cpp | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/SandboxiePlus/MiscHelpers/Common/Finder.cpp b/SandboxiePlus/MiscHelpers/Common/Finder.cpp index 839bec5d..af8603d9 100644 --- a/SandboxiePlus/MiscHelpers/Common/Finder.cpp +++ b/SandboxiePlus/MiscHelpers/Common/Finder.cpp @@ -124,7 +124,8 @@ CFinder::~CFinder() void CFinder::SetTree(QTreeView* pTree) { m_pTree = pTree; - QObject::connect(this, SIGNAL(SelectNext()), this, SLOT(OnSelectNext())); + if(m_pModel) + QObject::connect(this, SIGNAL(SelectNext()), this, SLOT(OnSelectNext())); } bool CFinder::eventFilter(QObject* source, QEvent* event) diff --git a/SandboxiePlus/SandMan/Views/TraceView.cpp b/SandboxiePlus/SandMan/Views/TraceView.cpp index 14873e95..31ed3028 100644 --- a/SandboxiePlus/SandMan/Views/TraceView.cpp +++ b/SandboxiePlus/SandMan/Views/TraceView.cpp @@ -86,8 +86,10 @@ CTraceTree::CTraceTree(QWidget* parent) //connect(m_pBoxTree, SIGNAL(ColumnChanged(int, bool)), this, SLOT(OnColumnsChanged())); //m_pMainLayout->addWidget(CFinder::AddFinder(m_pTreeList, m_pSortProxy)); - m_pMainLayout->addWidget(CFinder::AddFinder(m_pTreeList, this, CFinder::eHighLightDefault)); + CFinder* pFinder; + m_pMainLayout->addWidget(CFinder::AddFinder(m_pTreeList, m_pTraceModel, CFinder::eHighLightDefault, &pFinder)); //QObject::connect(pFinder, SIGNAL(SelectNext()), this, SLOT(SelectNext())); + QObject::connect(pFinder, SIGNAL(SetFilter(const QString&, int, int)), this, SLOT(SetFilter(const QString&, int, int))); QByteArray Columns = theConf->GetBlob("MainWindow/TraceLog_Columns");