Skip to content

Conversation

@hebasto
Copy link
Member

@hebasto hebasto commented Apr 16, 2022

Qt 5:

  • no behavior change.

See https://code.qt.io/cgit/qt/qtbase.git/tree/src/corelib/kernel/qcoreapplication.cpp?h=5.15#n2012:

void QCoreApplication::quit()
{
    exit(0);
}

Qt 6:

  • this change avoids sending a duplicated QEvent::Quit

We use QEvent::Quit to handle macOS dock menu events. Qt 6 uses QEvent::Quit more widely. We do not want a duplicated QEvent::Quit which fires Assert(node.args); in the Shutdown() function.

@hebasto hebasto added the Qt 6 Transition to Qt 6 label Apr 16, 2022
@hebasto
Copy link
Member Author

hebasto commented Apr 16, 2022

Just for a quick reference, here is a (full?) list of ways to quit the GUI:

  1. Close the splash screen window
  2. Press q on the splash screen
  3. Close the main window (if the "Minimize on close" option is disabled)
  4. Menu File --> Exit. On macOS use an application menu
  5. Shortcut Ctrl+Q
  6. System tray icon menu Exit. On macOS use a Dock icon menu
  7. Run stop command in the Console tab
  8. Receive the stop RPC command (if the "Enable RPC server" option is checked)
  9. Press "Reset Options" button in the Options tab
  10. Ctrl+C in a shell which runs bitcoin-qt

Copy link
Contributor

@w0xlt w0xlt left a comment

Choose a reason for hiding this comment

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

tACK 4717ebe on Ubuntu 21.10, Qt 5.15.2.

Tested with all options mentioned in #586 (comment)

@hebasto
Copy link
Member Author

hebasto commented Apr 20, 2022

Updated 4717ebe -> e0930ad (pr586.01 -> pr586.02, diff):

  • added the same changes into the tests

Qt 5:
 - no behavior change

Qt 6:
 - this change avoids sending a duplicated `QEvent::Quit`
@hebasto
Copy link
Member Author

hebasto commented May 21, 2022

Updated e0930ad -> 252f363 (pr586.02 -> pr586.03, diff):

Copy link
Contributor

@promag promag left a comment

Choose a reason for hiding this comment

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

Code review ACK 252f363.

@hebasto hebasto merged commit dfe11a1 into bitcoin-core:master May 23, 2022
@hebasto hebasto deleted the 220416-quit branch May 23, 2022 07:06
sidhujag pushed a commit to syscoin/syscoin that referenced this pull request May 28, 2022
@bitcoin-core bitcoin-core locked and limited conversation to collaborators May 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Qt 6 Transition to Qt 6

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants