Skip to content

Conversation

@hebasto
Copy link
Member

@hebasto hebasto commented Dec 1, 2018

Cleaning up after replacing the QSplashScreen base class with the QWidget class (#4941 by @laanwj).

cc @jonasschnelli

Cleaning up after replacing the QSplashScreen base class with the
QWidget class.
@fanquake fanquake added the GUI label Dec 2, 2018
// screen will take care of deleting itself when finish() happens.
splash->show();
connect(this, &BitcoinApplication::splashFinished, splash, &SplashScreen::slotFinish);
connect(this, &BitcoinApplication::splashFinished, splash, &SplashScreen::finish);
Copy link
Contributor

Choose a reason for hiding this comment

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

Could just

connect(this, &BitcoinApplication::splashFinished, splash, &SplashScreen::deleteLater);

or is there a good reason to call hide()?

Copy link
Contributor

Choose a reason for hiding this comment

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

When #8231 was merged there was no deleteLater() call.

Copy link
Member Author

Choose a reason for hiding this comment

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

Tested on macOS 10.13.6: if the splash screen is minimized, neither deleteLater() nor hide(); deleteLater() can remove it from the Dock.
It seems the simplest way is to not touch the patch from #8231.

Copy link
Member Author

Choose a reason for hiding this comment

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

@promag Moreover, IIUC, 34ebceb commit has been effectively disabled by e4f126a.
What do you think about this?

Copy link
Contributor

Choose a reason for hiding this comment

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

Just tested my suggestion above with Qt 5.11 on macOS 10.14.1 and the following are good:

  • closing the app while splash is open
  • splash goes away from the dock even if it's minimized.

What's your Qt version?

Copy link
Member Author

Choose a reason for hiding this comment

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

@promag

What's your Qt version?

Qt 5.11.2

Copy link
Contributor

Choose a reason for hiding this comment

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

@hebasto with my above suggestion I can't reproduce #7718 in my system. Maybe this is was macOS issue?

Copy link
Member Author

Choose a reason for hiding this comment

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

@promag

Maybe this is was macOS issue?

Agree. As there are systems subject to #7718 it is better to not touch the patch from #8231, IMO.

@DrahtBot
Copy link
Contributor

DrahtBot commented Dec 3, 2018

The following sections might be updated with supplementary metadata relevant to reviewers and maintainers.

Conflicts

Reviewers, this pull request conflicts with the following ones:

  • #14250 (qt: Remove redundant stopThread() and stopExecutor() signals by hebasto)
  • #13880 (gui: Try shutdown also on failure by MarcoFalke)

If you consider this pull request important, please also help to review the conflicting pull requests. Ideally, start with the one that should be merged first.

@jonasschnelli
Copy link
Contributor

Can't remember why the unused variable ended up there.

utACK 7d1b60c

@laanwj
Copy link
Member

laanwj commented Dec 7, 2018

utACK 7d1b60c

@laanwj laanwj merged commit 7d1b60c into bitcoin:master Dec 7, 2018
@hebasto hebasto deleted the 20181201-cleanup-splashscreen branch December 7, 2018 16:37
jasonbcox pushed a commit to Bitcoin-ABC/bitcoin-abc that referenced this pull request Oct 9, 2020
Summary:
Cleaning up after replacing the QSplashScreen base class with the
QWidget class ([[bitcoin/bitcoin#4941 | PR4941]]).

Backport of Core [[bitcoin/bitcoin#14854 | PR14854]]

Test Plan:
```
ninja && ninja check
src/qt/bitcoin-qt
```

Reviewers: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Reviewed By: O1 Bitcoin ABC, #bitcoin_abc, Fabien

Differential Revision: https://reviews.bitcoinabc.org/D7840
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Sep 8, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants