From: Markus Goetz Date: Mon, 22 Feb 2016 11:47:26 +0000 (+0100) Subject: SelectiveSync: Improve menu #4378 X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~1351 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=47ce4bd9e5e048463e5eee86d13cfb442997f4f2;p=nextcloud-desktop.git SelectiveSync: Improve menu #4378 --- diff --git a/src/gui/accountsettings.cpp b/src/gui/accountsettings.cpp index 7a016cb0e..fa4018f0c 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()));