mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-06-03 13:15:17 -06:00
Qt: don't filter log if the input dialog was canceled
This commit is contained in:
parent
f1e679d981
commit
622fe1ce47
@ -187,7 +187,10 @@ void log_viewer::show_context_menu(const QPoint& pos)
|
|||||||
|
|
||||||
connect(filter, &QAction::triggered, this, [this]()
|
connect(filter, &QAction::triggered, this, [this]()
|
||||||
{
|
{
|
||||||
m_filter_term = QInputDialog::getText(this, tr("Filter log"), tr("Enter text"), QLineEdit::EchoMode::Normal, m_filter_term);
|
bool ok = false;
|
||||||
|
QString filter_term = QInputDialog::getText(this, tr("Filter log"), tr("Enter text"), QLineEdit::EchoMode::Normal, m_filter_term, &ok);
|
||||||
|
if (!ok) return;
|
||||||
|
m_filter_term = std::move(filter_term);
|
||||||
filter_log();
|
filter_log();
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user