Skip to content

BugFix: prevent crashing from double-click on connect button#5313

Merged
SlySven merged 1 commit intoMudlet:developmentfrom
SlySven:BugFix_preventCrashingFromDoubleClickOnConnectButton
Jul 11, 2021
Merged

BugFix: prevent crashing from double-click on connect button#5313
SlySven merged 1 commit intoMudlet:developmentfrom
SlySven:BugFix_preventCrashingFromDoubleClickOnConnectButton

Conversation

@SlySven
Copy link
Copy Markdown
Member

@SlySven SlySven commented Jul 11, 2021

This is done by hiding the connect profile dialogue as quickly as possible after the load or connect buttons have been clicked (and before the possibly lengthy profile loading operations commenced). This should close #5303.

Also, it was found that the: (void) dlgConnectionProfiles::slot_connectToServer() slot method was redundant and could be removed.

Signed-off-by: Stephen Lyons slysven@virginmedia.com

Release post highlight

Reduce possibility of crashing Mudlet by double-clicking on "load" or "connect" buttons in profile selection dialogue.

This is done by hiding the connect profile dialogue as quickly as possible
after the load or connect buttons have been clicked (and before the
possibly lengthy profile loading operations commenced). This should close
Mudlet#5303.

Also, it was found that the:
`(void) dlgConnectionProfiles::slot_connectToServer()` slot method was
redundant and could be removed.

Signed-off-by: Stephen Lyons <slysven@virginmedia.com>
@SlySven SlySven requested a review from a team as a code owner July 11, 2021 17:37
@SlySven SlySven requested a review from a team July 11, 2021 17:37
@add-deployment-links
Copy link
Copy Markdown

add-deployment-links bot commented Jul 11, 2021

Hey there! Thanks for helping Mudlet improve. 🌟

Test versions

You can directly test the changes here:

No need to install anything - just unzip and run.
Let us know if it works well, and if it doesn't, please give details.

@github-actions
Copy link
Copy Markdown
Contributor

clang-tidy review says "All clean, LGTM! 👍"

@atari2600tim
Copy link
Copy Markdown
Contributor

This seems right. Even on a slower computer, with this build I can not crash it even by highlighting the button and pressing both enter keys at once.

Copy link
Copy Markdown
Member

@keneanung keneanung left a comment

Choose a reason for hiding this comment

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

Looks good to me. One question: does the button appear if you reopen the dialog?

@Kebap
Copy link
Copy Markdown
Contributor

Kebap commented Jul 11, 2021

@atari2600tim

This seems right. Even on a slower computer, with this build I can not crash it even by highlighting the button and pressing both enter keys at once.

How about the "offline" button?

@keneanung

Looks good to me. One question: does the button appear if you reopen the dialog?

I read the same, but actually no buttons are hidden at all, instead the whole popup window is.
So, yes if you summon the window again, they still carry a "connect" button as expected

@keneanung
Copy link
Copy Markdown
Member

Right... Thanks @Kebap

@SlySven
Copy link
Copy Markdown
Member Author

SlySven commented Jul 11, 2021

How about the "offline" button?

They are both treated in the same way - so if it is okay for one it should be okay for the other as well.

@SlySven SlySven merged commit 1db31b8 into Mudlet:development Jul 11, 2021
@SlySven SlySven deleted the BugFix_preventCrashingFromDoubleClickOnConnectButton branch July 11, 2021 20:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Mudlet crash after double-click on Connect button

5 participants