Pre-setup, disable irrelevant items in context menu

This commit is contained in:
Daniel Molkentin 2012-10-20 13:48:03 +02:00
parent 3e150ee47b
commit d8728a56bc

View file

@ -380,6 +380,12 @@ void Application::setupSystemTray()
void Application::setupContextMenu()
{
bool isConfigured = ownCloudInfo::instance()->isConfigured();
_actionOpenStatus->setEnabled(isConfigured);
_actionOpenoC->setEnabled(isConfigured);
_actionAddFolder->setEnabled(isConfigured);
if( _contextMenu ) {
_contextMenu->clear();
} else {