summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-02-15 19:51:54 +0300
committerAndrei Karas <akaras@inbox.ru>2015-02-15 19:51:54 +0300
commit89c361475ff1648c38c3c30f8112727b63fb40d6 (patch)
tree94cb2cc7b6698e2ca5fdb909d3a36bc10c29ab76 /src
parente6d25b2760a6bdb1b8c7305bdd3d72a607b58ff5 (diff)
downloadplus-89c361475ff1648c38c3c30f8112727b63fb40d6.tar.gz
plus-89c361475ff1648c38c3c30f8112727b63fb40d6.tar.bz2
plus-89c361475ff1648c38c3c30f8112727b63fb40d6.tar.xz
plus-89c361475ff1648c38c3c30f8112727b63fb40d6.zip
Dont show emoty tooltips in inventory.
Diffstat (limited to 'src')
-rw-r--r--src/gui/windows/inventorywindow.cpp4
1 files changed, 3 insertions, 1 deletions
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);
}
}