mirror of
https://github.com/RPCS3/rpcs3.git
synced 2026-02-04 23:04:41 +01: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]()
|
||||
{
|
||||
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();
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue