From 47ce4bd9e5e048463e5eee86d13cfb442997f4f2 Mon Sep 17 00:00:00 2001 From: Markus Goetz Date: Mon, 22 Feb 2016 12:47:26 +0100 Subject: [PATCH] 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 7a016cb0e6..fa4018f0cf 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()));