From f651273ebf2a8b11aa01ed1434ecb613177ced6a Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 2 Aug 2015 16:13:36 +0300 Subject: Add gui mode for dyecmd. Now only basic code added. --- src/gui/widgets/browserbox.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/gui/widgets/browserbox.cpp') diff --git a/src/gui/widgets/browserbox.cpp b/src/gui/widgets/browserbox.cpp index 068894418..67dbbe632 100644 --- a/src/gui/widgets/browserbox.cpp +++ b/src/gui/widgets/browserbox.cpp @@ -235,10 +235,12 @@ void BrowserBox::addRow(const std::string &row, const bool atTop) bLink.y2 = bLink.y1 + font->getHeight(); if (bLink.caption.empty()) { +#ifndef DYECMD const int id = atoi(bLink.link.c_str()); if (id) bLink.caption = ItemDB::get(id).getName(); else +#endif bLink.caption = bLink.link; if (translator) bLink.caption = translator->getStr(bLink.caption); -- cgit v1.2.3-60-g2f50