[Pkg-owncloud-commits] [owncloud-client] 60/470: SelectiveSync: Improve menu #4378
Sandro Knauß
hefee-guest at moszumanska.debian.org
Thu May 12 16:24:44 UTC 2016
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 47ce4bd9e5e048463e5eee86d13cfb442997f4f2
Author: Markus Goetz <markus at woboq.com>
Date: Mon Feb 22 12:47:26 2016 +0100
SelectiveSync: Improve menu #4378
---
src/gui/accountsettings.cpp | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp
index 7a016cb..fa4018f 100644
--- a/src/gui/accountsettings.cpp
+++ b/src/gui/accountsettings.cpp
@@ -208,9 +208,11 @@ void AccountSettings::slotCustomContextMenuRequested(const QPoint &pos)
QAction *ac = menu->addAction(tr("Open folder"));
connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotOpenCurrentFolder()));
- ac = menu->addAction(tr("Choose what to sync"));
- ac->setEnabled(folderConnected);
- connect(ac, SIGNAL(triggered(bool)), this, SLOT(doExpand()));
+ if (!ui->_folderList->isExpanded(index)) {
+ ac = menu->addAction(tr("Choose what to sync"));
+ ac->setEnabled(folderConnected);
+ connect(ac, SIGNAL(triggered(bool)), this, SLOT(doExpand()));
+ }
ac = menu->addAction(folderPaused ? tr("Resume sync") : tr("Pause sync"));
connect(ac, SIGNAL(triggered(bool)), this, SLOT(slotEnableCurrentFolder()));
--
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