mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-08 18:36:16 +00:00
Use static QFileInfo::exists
This commit is contained in:
@@ -153,7 +153,7 @@ bool FileParser::readKeyValue(const char *&from, const char *end) {
|
||||
}
|
||||
|
||||
QByteArray FileParser::ReadFile(const QString &absolutePath, const QString &relativePath) {
|
||||
QFile file(QFileInfo(relativePath).exists() ? relativePath : absolutePath);
|
||||
QFile file(QFileInfo::exists(relativePath) ? relativePath : absolutePath);
|
||||
if (!file.open(QIODevice::ReadOnly)) {
|
||||
Ui::Integration::Instance().writeLogEntry(u"Lang Error: Could not open file at '%1' ('%2')"_q.arg(relativePath, absolutePath));
|
||||
return QByteArray();
|
||||
|
Reference in New Issue
Block a user