-
Notifications
You must be signed in to change notification settings - Fork 33
Auto-fill the instruction text when adding a TTD bookmark (Fixes #1108) #1151
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
base: dev
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -216,7 +216,7 @@ void TTDCallsQueryWidget::setupUIActions() | |
| defaultNote = funcItem->text(); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Re: Earlier comment about auto-fill, it looks like this will prevent that. Again, if that's desired, awesome. Just stuck out as a difference. |
||
|
|
||
| TTDBookmarkEditDialog dialog(this, | ||
| posStr, defaultNote, viewAddress != 0 ? QString("0x%1").arg(viewAddress, 0, 16) : ""); | ||
| posStr, defaultNote, viewAddress != 0 ? QString("0x%1").arg(viewAddress, 0, 16) : "", m_controller); | ||
| if (dialog.exec() == QDialog::Accepted) | ||
| { | ||
| QString editedPosStr = dialog.getPosition(); | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -372,7 +372,7 @@ void TTDEventsQueryWidget::setupUIActions() | |
| return; | ||
| QString posStr = posItem->text(); | ||
|
|
||
| TTDBookmarkEditDialog dialog(this, posStr, "", ""); | ||
| TTDBookmarkEditDialog dialog(this, posStr, "", "", m_controller); | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I also ran an LLM review on this PR as I had some questions on how certain things worked in the debugger after finishing my review. When I did, it said there is a problem here. I asked it for more information, and it said:
Looking over this, I think its logic holds? |
||
| if (dialog.exec() == QDialog::Accepted) | ||
| { | ||
| QString editedPosStr = dialog.getPosition(); | ||
|
|
||
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.
Is the logic here correct? I haven't built this and ran it, but if
m_noteEditedis!note.isEmpty(above, line 140), doesn't that mean that deleting a note and leaving it empty will cause it to auto-fill?If this is intentional/desired, awesome, I just didn't understand that from the comment here. Seemed like an edge-case that wasn't addressed instead.