Use user-readable short folder path in the context menu

This commit is contained in:
Daniel Molkentin 2015-12-02 15:46:42 +01:00
parent 451ebd447b
commit ab5e543099

View file

@ -335,7 +335,7 @@ void ownCloudGui::addAccountContextMenu(AccountStatePtr accountState, QMenu *men
menu->addAction(tr("Managed Folders:"))->setDisabled(true);
}
QAction *action = new QAction( tr("Open folder '%1'").arg(folder->path()), this );
QAction *action = new QAction( tr("Open folder '%1'").arg(folder->shortGuiPath()), this );
connect(action, SIGNAL(triggered()),_folderOpenActionMapper, SLOT(map()));
_folderOpenActionMapper->setMapping( action, folder->alias() );
menu->addAction(action);