New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
debugger: Implement F1 helper #9637
Conversation
rpcs3/rpcs3qt/debugger_frame.cpp
Outdated
{ | ||
case Qt::Key_F1: | ||
{ | ||
QDialog* diag = new QDialog(this); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you always call it diag..... this makes zero sense
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed, I fixed it in other places as well.
rpcs3/rpcs3qt/debugger_frame.cpp
Outdated
return; | ||
} | ||
} | ||
|
||
if (!isActiveWindow() || !cpu) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
there's a reason why we return if this is not the active window...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed.
@@ -227,7 +227,44 @@ void debugger_frame::keyPressEvent(QKeyEvent* event) | |||
const auto cpu = this->cpu.lock(); | |||
int i = m_debugger_list->currentRow(); | |||
|
|||
if (!isActiveWindow() || !cpu) | |||
if (!isActiveWindow()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should be at the beginning of the function, and the cpu and currentRow stuff after your new switch
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
Fixes #9101