Skip to content

Commit

Permalink
Merge pull request #7706 from nextcloud/backport/7679/stable-3.15
Browse files Browse the repository at this point in the history
[stable-3.15] Bugfix/elidedtext
  • Loading branch information
mgallien authored Jan 2, 2025
2 parents 9436f73 + 5932198 commit 0db44c8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/folderman.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2046,7 +2046,7 @@ Result<void, QString> FolderMan::unsupportedConfiguration(const QString &path) c
if (numberOfSyncJournals(path) > 1) {
return tr("The folder %1 is linked to multiple accounts.\n"
"This setup can cause data loss and it is no longer supported.\n"
"To resolve this issue: please remove %1 from one of the accounts and create a new sync folder.\n\n"
"To resolve this issue: please remove %1 from one of the accounts and create a new sync folder.\n"
"For advanced users: this issue might be related to multiple sync database files found in one folder. Please check %1 for outdated and unused .sync_*.db files and remove them.")
.arg(path);
}
Expand Down
2 changes: 1 addition & 1 deletion src/gui/folderstatusdelegate.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ void FolderStatusDelegate::paint(QPainter *painter, const QStyleOptionViewItem &
subFm.height());

for (const auto &eText : texts) {
painter->drawText(QStyle::visualRect(option.direction, option.rect, textRect), textAlign, subFm.elidedText(eText, Qt::ElideLeft, textRect.width()));
painter->drawText(QStyle::visualRect(option.direction, option.rect, textRect), textAlign, subFm.elidedText(eText, Qt::ElideRight, textRect.width()));
textRect.translate(0, textRect.height());
}
// restore previous state
Expand Down

0 comments on commit 0db44c8

Please sign in to comment.