Skip to content
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

Merged
merged 2 commits into from Jan 21, 2021
Merged

debugger: Implement F1 helper #9637

merged 2 commits into from Jan 21, 2021

Conversation

elad335
Copy link
Contributor

@elad335 elad335 commented Jan 21, 2021

image

Fixes #9101

{
case Qt::Key_F1:
{
QDialog* diag = new QDialog(this);
Copy link
Contributor

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

Copy link
Contributor Author

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.

return;
}
}

if (!isActiveWindow() || !cpu)
Copy link
Contributor

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...

Copy link
Contributor Author

@elad335 elad335 Jan 21, 2021

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())
Copy link
Contributor

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

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@Megamouse Megamouse merged commit 142b44d into RPCS3:master Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Feature Request] Document keyboard shortcuts on the debugger
2 participants