]> dgit.raspbian.org Git - nextcloud-desktop.git/commit
Add helper slots and signals to catch SettingsDialog's window activation events
authorMichael Schuster <michael@schuster.ms>
Sat, 21 Dec 2019 02:04:31 +0000 (03:04 +0100)
committerMichael Schuster <48932272+misch7@users.noreply.github.com>
Tue, 24 Dec 2019 06:46:57 +0000 (07:46 +0100)
commitaddb27a085a201357d905eed95e6ac38e7b4f78d
treed6e141a04651a117089832fa5c268bdc9da407d0
parentbe10d5200fdefc611de60a15a96d383987331df0
Add helper slots and signals to catch SettingsDialog's window activation events

Signal the SettingsDialog's window activation event down to ownCloudGui and Application,
so that other classes can hook in to get notified when the SettingsDialog is being shown
again.

This approach has been chosen because we otherwise would have to deal with new instance
pointers of the current SettingsWindow - but Application is already there ;-)

Purpose: The floating re-auth windows of the WebFlowCredentialsDialog often get hidden
behind the SettingsDialog, and the users have to minimize a lot of other windows to find
them again. This commit implements the preparation for the upcoming fix commit.

Signed-off-by: Michael Schuster <michael@schuster.ms>
src/gui/application.cpp
src/gui/application.h
src/gui/owncloudgui.cpp
src/gui/owncloudgui.h
src/gui/settingsdialog.cpp
src/gui/settingsdialog.h