[Pkg-owncloud-commits] [owncloud-client] 306/484: Tray tooltip: Use aliasGui #4096
Sandro Knauß
hefee-guest at moszumanska.debian.org
Wed Dec 16 00:37:56 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit c871d721fdcf7552757a25f01dd32029f1f40bb9
Author: Christian Kamm <mail at ckamm.de>
Date: Wed Nov 11 14:35:56 2015 +0100
Tray tooltip: Use aliasGui #4096
---
src/gui/owncloudgui.cpp | 9 +--------
1 file changed, 1 insertion(+), 8 deletions(-)
diff --git a/src/gui/owncloudgui.cpp b/src/gui/owncloudgui.cpp
index 8a67b4b..c81dc43 100644
--- a/src/gui/owncloudgui.cpp
+++ b/src/gui/owncloudgui.cpp
@@ -286,7 +286,7 @@ void ownCloudGui::slotComputeOverallSyncStatus()
foreach(Folder* folder, map.values()) {
qDebug() << "Folder in overallStatus Message: " << folder << " with name " << folder->alias();
QString folderMessage = folderMan->statusToString(folder->syncResult().status(), folder->syncPaused());
- allStatusStrings += tr("Folder %1: %2").arg(folder->alias(), folderMessage);
+ allStatusStrings += tr("Folder %1: %2").arg(folder->aliasGui(), folderMessage);
}
trayMessage = allStatusStrings.join(QLatin1String("\n"));
#endif
@@ -331,13 +331,6 @@ void ownCloudGui::addAccountContextMenu(AccountStatePtr accountState, QMenu *men
menu->addAction(tr("Managed Folders:"))->setDisabled(true);
}
- // If there can only be a single sync folder, showing the alias is
- // unnecessary.
- QString folderName = folder->alias();
- if (singleSyncFolder) {
- folderName = Theme::instance()->appNameGUI();
- }
-
QAction *action = new QAction( tr("Open folder '%1'").arg(folder->path()), this );
connect(action, SIGNAL(triggered()),_folderOpenActionMapper, SLOT(map()));
_folderOpenActionMapper->setMapping( action, folder->alias() );
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list