mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2024-12-27 02:08:19 +03:00
parent
1e88650bae
commit
7df54ad534
2 changed files with 4 additions and 8 deletions
|
@ -45,8 +45,7 @@ const int ARTICLEDATALIST_TYPEID = qRegisterMetaType<QVector<QVariantHash>>();
|
|||
|
||||
void RSS::Private::FeedSerializer::load(const Path &dataFileName, const QString &url)
|
||||
{
|
||||
const int fileMaxSize = 10 * 1024 * 1024;
|
||||
const auto readResult = Utils::IO::readFile(dataFileName, fileMaxSize);
|
||||
const auto readResult = Utils::IO::readFile(dataFileName, -1);
|
||||
if (!readResult)
|
||||
{
|
||||
if (readResult.error().status == Utils::IO::ReadError::NotExist)
|
||||
|
|
|
@ -74,22 +74,19 @@ AboutDialog::AboutDialog(QWidget *parent)
|
|||
m_ui->labelMascot->setPixmap(Utils::Gui::scaledPixmap(Path(u":/icons/mascot.png"_s), this));
|
||||
|
||||
// Thanks
|
||||
if (const auto readResult = Utils::IO::readFile(Path(u":/thanks.html"_s), -1, QIODevice::Text)
|
||||
; readResult)
|
||||
if (const auto readResult = Utils::IO::readFile(Path(u":/thanks.html"_s), -1, QIODevice::Text))
|
||||
{
|
||||
m_ui->textBrowserThanks->setHtml(QString::fromUtf8(readResult.value()));
|
||||
}
|
||||
|
||||
// Translation
|
||||
if (const auto readResult = Utils::IO::readFile(Path(u":/translators.html"_s), -1, QIODevice::Text)
|
||||
; readResult)
|
||||
if (const auto readResult = Utils::IO::readFile(Path(u":/translators.html"_s), -1, QIODevice::Text))
|
||||
{
|
||||
m_ui->textBrowserTranslation->setHtml(QString::fromUtf8(readResult.value()));
|
||||
}
|
||||
|
||||
// License
|
||||
if (const auto readResult = Utils::IO::readFile(Path(u":/gpl.html"_s), -1, QIODevice::Text)
|
||||
; readResult)
|
||||
if (const auto readResult = Utils::IO::readFile(Path(u":/gpl.html"_s), -1, QIODevice::Text))
|
||||
{
|
||||
m_ui->textBrowserLicense->setHtml(QString::fromUtf8(readResult.value()));
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue