diff --git a/rpcs3/rpcs3qt/log_frame.cpp b/rpcs3/rpcs3qt/log_frame.cpp index 3ba7ec65a1..0c831f6125 100644 --- a/rpcs3/rpcs3qt/log_frame.cpp +++ b/rpcs3/rpcs3qt/log_frame.cpp @@ -100,6 +100,12 @@ struct gui_listener : logs::listener pending = queue.pop_all(); return pending.get(); } + + void clear() + { + pending = lf_queue_slice(); + queue.pop_all(); + } }; // GUI Listener instance @@ -232,6 +238,7 @@ void log_frame::CreateAndConnectActions() { m_old_log_text.clear(); m_log->clear(); + s_gui_listener.clear(); }); m_clear_tty_act = new QAction(tr("Clear"), this);