[Pkg-owncloud-commits] [owncloud-client] 289/484: Tray: Show settings dialog on click if it's not active
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:54 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit 4b5c3d8f09ce9acbe52647c1bafd02c8a9fda407
Author: Christian Kamm <mail at ckamm.de>
Date: Tue Nov 10 12:33:36 2015 +0100
Tray: Show settings dialog on click if it's not active
Before, you often had to click twice to bring the window
to the front, because the first click would close it.
---
src/gui/owncloudgui.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp
index 4adaeaa..494c376 100644
--- a/src/gui/owncloudgui.cpp
+++ b/src/gui/owncloudgui.cpp
@@ -150,7 +150,7 @@ void ownCloudGui::slotOpenSettingsDialog()
{
// if account is set up, start the configuration wizard.
if( !AccountManager::instance()->accounts().isEmpty() ) {
- if (_settingsDialog.isNull() || !_settingsDialog->isVisible()) {
+ if (_settingsDialog.isNull() || QApplication::activeWindow() != _settingsDialog) {
slotShowSettings();
} else {
_settingsDialog->close();
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list