mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Fix implicit conversions from QByteArray
This commit is contained in:
@@ -642,7 +642,10 @@ std::pair<QString, QSize> WriteImageThumb(
|
||||
? largePath.mid(0, firstDot) + postfix + largePath.mid(firstDot)
|
||||
: largePath + postfix;
|
||||
const auto result = Output::File::PrepareRelativePath(basePath, thumb);
|
||||
if (!image.save(basePath + result, finalFormat, finalQuality)) {
|
||||
if (!image.save(
|
||||
basePath + result,
|
||||
finalFormat.constData(),
|
||||
finalQuality)) {
|
||||
return {};
|
||||
}
|
||||
return { result, finalSize };
|
||||
|
||||
Reference in New Issue
Block a user