Use user-readable short folder path in the context menu
authorDaniel Molkentin <danimo@owncloud.com>
Wed, 2 Dec 2015 14:46:42 +0000 (15:46 +0100)
committerDaniel Molkentin <danimo@owncloud.com>
Wed, 2 Dec 2015 14:46:42 +0000 (15:46 +0100)
src/gui/owncloudgui.cpp

index debb41626fdeb05b45f22e9bb7179c1eab4d4677..af8dc1b5ecdbd562b2e333962f3143f2107704aa 100644 (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);