diff options
Diffstat (limited to 'view/sharedcache/ui/symboltable.cpp')
| -rw-r--r-- | view/sharedcache/ui/symboltable.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/view/sharedcache/ui/symboltable.cpp b/view/sharedcache/ui/symboltable.cpp index 0b006fbc..1df7d529 100644 --- a/view/sharedcache/ui/symboltable.cpp +++ b/view/sharedcache/ui/symboltable.cpp @@ -102,7 +102,8 @@ void SymbolTableModel::setFilter(std::string text) if (((std::string_view)symbol.name).find(m_filter) != std::string::npos) m_modelSymbols.push_back(symbol); m_modelSymbols.shrink_to_fit(); - } else + } + else { m_modelSymbols = m_preparedSymbols; } @@ -112,7 +113,7 @@ void SymbolTableModel::setFilter(std::string text) SymbolTableView::SymbolTableView(QWidget* parent) - : m_model(new SymbolTableModel(this)) { + : QTableView(parent), m_model(new SymbolTableModel(this)) { // Set up the filter model setModel(m_model); |
