From 89c361475ff1648c38c3c30f8112727b63fb40d6 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 15 Feb 2015 19:51:54 +0300 Subject: Dont show emoty tooltips in inventory. --- src/gui/windows/inventorywindow.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/gui/windows/inventorywindow.cpp') diff --git a/src/gui/windows/inventorywindow.cpp b/src/gui/windows/inventorywindow.cpp index 0124152ee..9877bd147 100644 --- a/src/gui/windows/inventorywindow.cpp +++ b/src/gui/windows/inventorywindow.cpp @@ -677,7 +677,9 @@ void InventoryWindow::mouseMoved(MouseEvent &event) textPopup->hide(); return; } - textPopup->show(x + rect.x, y + rect.y, btn->getDescription()); + const std::string text = btn->getDescription(); + if (!text.empty()) + textPopup->show(x + rect.x, y + rect.y, text); } } -- cgit v1.2.3-70-g09d2