diff options
Diffstat (limited to 'src/gui/windows/inventorywindow.cpp')
-rw-r--r-- | src/gui/windows/inventorywindow.cpp | 4 |
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); } } |