From 4db8641fd12c6e11257a6a45fcb2e1948fe4bcb1 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Fri, 27 Jan 2017 19:35:12 +0300 Subject: Move keys replace code from browserbox into browserboxtools. --- src/gui/widgets/browserbox.cpp | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'src/gui') diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 13de696e9..bd565b3d6 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -231,19 +231,7 @@ void BrowserBox::addRow(const std::string &row, const bool atTop) if (mEnableKeys) { - idx1 = tmp.find("###"); - while (idx1 != std::string::npos) - { - const size_t idx2 = tmp.find(';', idx1); - if (idx2 == std::string::npos) - break; - - const std::string str = inputManager.getKeyValueByNameLong( - tmp.substr(idx1 + 3, idx2 - idx1 - 3)); - tmp.replace(idx1, idx2 - idx1 + 1, str); - - idx1 = tmp.find("###"); - } + BrowserBoxTools::replaceKeys(tmp); } idx1 = tmp.find("@@"); -- cgit v1.2.3-70-g09d2