summaryrefslogtreecommitdiff
path: root/src/gui/widgets
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-07-29 22:00:35 +0300
committerAndrei Karas <akaras@inbox.ru>2012-07-30 00:36:10 +0300
commit6fcbad4dc14b65acde858781cb0b0be1e9df9436 (patch)
tree22a555d054fc28f59477f91287df1a513c10b91a /src/gui/widgets
parentb59601f599e84ed3b271a15ae4033f44e2c55763 (diff)
downloadmanaverse-6fcbad4dc14b65acde858781cb0b0be1e9df9436.tar.gz
manaverse-6fcbad4dc14b65acde858781cb0b0be1e9df9436.tar.bz2
manaverse-6fcbad4dc14b65acde858781cb0b0be1e9df9436.tar.xz
manaverse-6fcbad4dc14b65acde858781cb0b0be1e9df9436.zip
Fix code style.
Diffstat (limited to 'src/gui/widgets')
-rw-r--r--src/gui/widgets/itemlinkhandler.cpp7
1 files changed, 6 insertions, 1 deletions
diff --git a/src/gui/widgets/itemlinkhandler.cpp b/src/gui/widgets/itemlinkhandler.cpp
index c09aea04c..45cb25463 100644
--- a/src/gui/widgets/itemlinkhandler.cpp
+++ b/src/gui/widgets/itemlinkhandler.cpp
@@ -67,9 +67,14 @@ void ItemLinkHandler::handleLink(const std::string &link,
mItemPopup->setItem(itemInfo, 1, true);
if (mItemPopup->isVisible())
+ {
mItemPopup->setVisible(false);
+ }
else if (viewport)
- mItemPopup->position(viewport->getMouseX(), viewport->getMouseY());
+ {
+ mItemPopup->position(viewport->getMouseX(),
+ viewport->getMouseY());
+ }
}
}
else