2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-29 13:47:47 +00:00

Workaround gcc bug in other places too

This commit is contained in:
RadRussianRus 2020-09-08 04:48:57 +03:00
parent e3d3464c35
commit 4c2fc600a0

View File

@ -841,9 +841,9 @@ bool Manager::readCustomFile() {
}
auto isPeerTypeRead = ReadStringOption(peer, "type", [&](auto type) {
peerStruct.type = type.toLower() == qsl("channel")
peerStruct.type = QString::compare(type.toLower(), "channel")
? LocalFolder::Peer::Type::Channel
: type.toLower() == qsl("chat")
: QString::compare(type.toLower(), "chat")
? LocalFolder::Peer::Type::Chat
: LocalFolder::Peer::Type::User;
});
@ -881,9 +881,9 @@ bool Manager::readCustomFile() {
}
auto isPeerTypeRead = ReadStringOption(peer, "type", [&](auto type) {
peerStruct.type = type.toLower() == qsl("channel")
peerStruct.type = QString::compare(type.toLower(), "channel")
? LocalFolder::Peer::Type::Channel
: type.toLower() == qsl("chat")
: QString::compare(type.toLower(), "chat")
? LocalFolder::Peer::Type::Chat
: LocalFolder::Peer::Type::User;
});