mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-14 13:17:08 +02:00
Fix detaching temporaries
This commit is contained in:
parent
f3bda59019
commit
9d582040e6
3 changed files with 4 additions and 3 deletions
|
@ -683,7 +683,8 @@ bool Application::eventFilter(QObject *object, QEvent *e) {
|
|||
} break;
|
||||
|
||||
case QEvent::ThemeChange: {
|
||||
if (Platform::IsLinux() && object == QGuiApplication::allWindows().first()) {
|
||||
if (Platform::IsLinux()
|
||||
&& object == QGuiApplication::allWindows().constFirst()) {
|
||||
Core::App().refreshApplicationIcon();
|
||||
Core::App().tray().updateIconCounters();
|
||||
}
|
||||
|
|
|
@ -213,7 +213,7 @@ QString ItemBase::getResultThumbLetter() const {
|
|||
domain = parts.at(2);
|
||||
}
|
||||
|
||||
parts = domain.split('@').back().split('.');
|
||||
parts = domain.split('@').constLast().split('.');
|
||||
if (parts.size() > 1) {
|
||||
return parts.at(parts.size() - 2).at(0).toUpper();
|
||||
}
|
||||
|
|
|
@ -1693,7 +1693,7 @@ Link::Link(
|
|||
domain = parts.at(2);
|
||||
}
|
||||
|
||||
parts = domain.split('@').back().split('.', Qt::SkipEmptyParts);
|
||||
parts = domain.split('@').constLast().split('.', Qt::SkipEmptyParts);
|
||||
if (parts.size() > 1) {
|
||||
_letter = parts.at(parts.size() - 2).at(0).toUpper();
|
||||
if (_title.isEmpty()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue