diff options
| author | Peter LaFosse <peter@vector35.com> | 2022-03-17 08:11:52 -0400 |
|---|---|---|
| committer | Peter LaFosse <peter@vector35.com> | 2022-03-17 08:11:52 -0400 |
| commit | 2571374a129d06a079c3671a184ccef3ee205f68 (patch) | |
| tree | 1b49403c5c5d38a4a6b5eb44c2fc6f1f205de9f5 /ui/logview.h | |
| parent | f3112cce751de039b0b26ee37cdaab637e056c4e (diff) | |
Fix crash when changing log filters with with items selected
Diffstat (limited to 'ui/logview.h')
| -rw-r--r-- | ui/logview.h | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ui/logview.h b/ui/logview.h index ed99e24a..2c4d6057 100644 --- a/ui/logview.h +++ b/ui/logview.h @@ -62,7 +62,7 @@ class BINARYNINJAUIAPI LogListFilterProxyModel : public QSortFilterProxyModel LoggingScope getScope() const { return m_scope; } public Q_SLOTS: void updateSession(size_t sessionId); - void updateLogger(const QString & loggerName); + void updateLogger(QString loggerName); void updateFilter(); }; @@ -73,10 +73,9 @@ class BINARYNINJAUIAPI LogListModel : public QAbstractItemModel, public BinaryNi QWidget* m_owner; std::deque<LogListItem> m_items; - std::deque<LogListItem> m_visibleItems; std::vector<LogListItem> m_pendingItems; - std::mutex m_mutex; + mutable std::mutex m_mutex; std::mutex m_pendingMutex; std::string m_logger; size_t m_sessionId {0}; @@ -198,7 +197,6 @@ class BINARYNINJAUIAPI LogView : public GlobalAreaWidget public: LogView(LogStatus* logStatus); - void adjustSize(int width, int height); virtual void copy(); virtual bool canCopy(); @@ -227,7 +225,6 @@ class BINARYNINJAUIAPI LogView : public GlobalAreaWidget protected: void contextMenuEvent(QContextMenuEvent* event) override; - virtual void resizeEvent(QResizeEvent* event) override; Q_SIGNALS: void notifyUiStatus(); |
