diff --git a/client/lobby/SelectionTab.cpp b/client/lobby/SelectionTab.cpp index 875023bba..a0016634e 100644 --- a/client/lobby/SelectionTab.cpp +++ b/client/lobby/SelectionTab.cpp @@ -326,16 +326,16 @@ void SelectionTab::clickDouble(const Point & cursorPosition) void SelectionTab::showPopupWindow(const Point & cursorPosition) { - int position = getLine(); + int position = getLine(); int py = position + slider->getValue(); - + if(py >= curItems.size()) return; - + std::string text = boost::str(boost::format("{%1%}\r\n\r\n%2%:\r\n%3%") % curItems[py]->getName() % CGI->generaltexth->translate("vcmi.lobby.filename") % curItems[py]->fileURI); if(curItems[py]->date != "") text += boost::str(boost::format("\r\n\r\n%1%:\r\n%2%") % CGI->generaltexth->translate("vcmi.lobby.creationDate") % curItems[py]->date); - + CRClickPopup::createAndPush(text); }