summaryrefslogtreecommitdiff
path: root/src/gui/windows/updaterwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-24 00:35:44 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-24 00:35:44 +0300
commit43aa8e6bedff642ba584c447c03886c1f0c52aac (patch)
tree24818c9b3f5196e6c69b97b87d9a547bbbe5aa81 /src/gui/windows/updaterwindow.cpp
parent98295d32030c620040e3e6bd912c6808174640e4 (diff)
downloadplus-43aa8e6bedff642ba584c447c03886c1f0c52aac.tar.gz
plus-43aa8e6bedff642ba584c447c03886c1f0c52aac.tar.bz2
plus-43aa8e6bedff642ba584c447c03886c1f0c52aac.tar.xz
plus-43aa8e6bedff642ba584c447c03886c1f0c52aac.zip
Remove default parameter from staticbrowserbox.
Diffstat (limited to 'src/gui/windows/updaterwindow.cpp')
-rw-r--r--src/gui/windows/updaterwindow.cpp23
1 files changed, 13 insertions, 10 deletions
diff --git a/src/gui/windows/updaterwindow.cpp b/src/gui/windows/updaterwindow.cpp
index 3858b0a5e..5bff64bc3 100644
--- a/src/gui/windows/updaterwindow.cpp
+++ b/src/gui/windows/updaterwindow.cpp
@@ -399,24 +399,24 @@ void UpdaterWindow::loadNews()
if (file.is_open())
file << line << std::endl;
if (cnt < maxNews)
- mBrowserBox->addRow(line);
+ mBrowserBox->addRow(line, false);
}
else
{
if (file.is_open())
file << line << std::endl;
if (cnt < maxNews)
- mBrowserBox->addRow(line);
+ mBrowserBox->addRow(line, false);
}
}
file.close();
if (cnt > maxNews)
{
- mBrowserBox->addRow("");
+ mBrowserBox->addRow("", false);
// TRANSLATORS: updater window checkbox
mBrowserBox->addRow("news", _("Show all news (can be slow)"));
- mBrowserBox->addRow("");
+ mBrowserBox->addRow("", false);
}
// Free the memory buffer now that we don't need it anymore
free(mMemoryBuffer);
@@ -856,15 +856,18 @@ void UpdaterWindow::logic()
switch (mDownloadStatus)
{
case UpdateDownloadStatus::UPDATE_ERROR:
- mBrowserBox->addRow("");
+ mBrowserBox->addRow("", false);
// TRANSLATORS: update message
- mBrowserBox->addRow(_("##1 The update process is incomplete."));
+ mBrowserBox->addRow(_("##1 The update process is incomplete."),
+ false);
// TRANSLATORS: Continues "The update process is incomplete.".
- mBrowserBox->addRow(_("##1 It is strongly recommended that"));
+ mBrowserBox->addRow(_("##1 It is strongly recommended that"),
+ false);
// TRANSLATORS: Begins "It is strongly recommended that".
- mBrowserBox->addRow(_("##1 you try again later."));
+ mBrowserBox->addRow(_("##1 you try again later."),
+ false);
if (mDownload != nullptr)
- mBrowserBox->addRow(mDownload->getError());
+ mBrowserBox->addRow(mDownload->getError(), false);
mBrowserBox->updateHeight();
mScrollArea->setVerticalScrollAmount(
mScrollArea->getVerticalMaxScroll());
@@ -1095,7 +1098,7 @@ void UpdaterWindow::loadFile(std::string file)
Files::loadTextFileLocal(mUpdatesDir + "/local/help/news.txt", lines);
for (size_t i = 0, sz = lines.size(); i < sz; ++i)
- mBrowserBox->addRow(lines[i]);
+ mBrowserBox->addRow(lines[i], false);
mBrowserBox->updateHeight();
}