aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--desktop-widgets/mainwindow.cpp12
1 files changed, 9 insertions, 3 deletions
diff --git a/desktop-widgets/mainwindow.cpp b/desktop-widgets/mainwindow.cpp
index d4c2317f1..22c57e2fc 100644
--- a/desktop-widgets/mainwindow.cpp
+++ b/desktop-widgets/mainwindow.cpp
@@ -1679,12 +1679,18 @@ QString MainWindow::displayedFilename(QString fullFilename)
QFileInfo fileInfo(f);
QString fileName(fileInfo.fileName());
- if (fullFilename.contains(prefs.cloud_git_url))
- return tr("[cloud storage for] %1").arg(fileName.left(fileName.indexOf('[')));
- else
+ if (fullFilename.contains(prefs.cloud_git_url)) {
+ QString email = fileName.left(fileName.indexOf('['));
+ if (prefs.git_local_only)
+ return tr("[local cache for] %1").arg(email);
+ else
+ return tr("[cloud storage for] %1").arg(email);
+ } else {
return fileName;
+ }
}
+
void MainWindow::setAutomaticTitle()
{
setTitle();