summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2017-12-24 04:18:25 +0300
committerAndrei Karas <akaras@inbox.ru>2017-12-24 04:18:25 +0300
commit07abefc34abc3731f5eb63a7616231827b11e271 (patch)
tree74872529b602ce1f06831768c1e4d49137f57a26 /src/gui/widgets
parent4e3cd287c2761247a58efbbc748df40482580414 (diff)
downloadmanaverse-07abefc34abc3731f5eb63a7616231827b11e271.tar.gz
manaverse-07abefc34abc3731f5eb63a7616231827b11e271.tar.bz2
manaverse-07abefc34abc3731f5eb63a7616231827b11e271.tar.xz
manaverse-07abefc34abc3731f5eb63a7616231827b11e271.zip
Remove default parameters from browserbox.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/browserbox.cpp3
-rw-r--r--src/gui/widgets/browserbox.h3
-rw-r--r--src/gui/widgets/tabs/chat/chattab.cpp3
3 files changed, 6 insertions, 3 deletions
diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp
index 6d65a11cb..df0c9b27d 100644
--- a/src/gui/widgets/browserbox.cpp
+++ b/src/gui/widgets/browserbox.cpp
@@ -337,7 +337,8 @@ void BrowserBox::addRow(const std::string &row, const bool atTop)
void BrowserBox::addRow(const std::string &cmd, const char *const text)
{
addRow(strprintf("@@%s|%s@@", encodeLinkText(cmd).c_str(),
- encodeLinkText(text).c_str()));
+ encodeLinkText(text).c_str()),
+ false);
}
void BrowserBox::addImage(const std::string &path)
diff --git a/src/gui/widgets/browserbox.h b/src/gui/widgets/browserbox.h
index 45502ba5a..66fcae2d9 100644
--- a/src/gui/widgets/browserbox.h
+++ b/src/gui/widgets/browserbox.h
@@ -83,7 +83,8 @@ class BrowserBox final : public Widget,
/**
* Adds a text row to the browser.
*/
- void addRow(const std::string &row, const bool atTop = false);
+ void addRow(const std::string &row,
+ const bool atTop);
/**
* Adds a menu line to the browser.
diff --git a/src/gui/widgets/tabs/chat/chattab.cpp b/src/gui/widgets/tabs/chat/chattab.cpp
index 64cae0ed3..7be67ab91 100644
--- a/src/gui/widgets/tabs/chat/chattab.cpp
+++ b/src/gui/widgets/tabs/chat/chattab.cpp
@@ -503,7 +503,8 @@ void ChatTab::addRow(std::string &line)
}
}
}
- mTextOutput->addRow(line);
+ mTextOutput->addRow(line,
+ false);
}
void ChatTab::loadFromLogFile(const std::string &name)