diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-07-29 22:00:35 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-07-30 00:36:10 +0300 |
commit | 6fcbad4dc14b65acde858781cb0b0be1e9df9436 (patch) | |
tree | 22a555d054fc28f59477f91287df1a513c10b91a /src/gui/widgets/itemlinkhandler.cpp | |
parent | b59601f599e84ed3b271a15ae4033f44e2c55763 (diff) | |
download | mv-6fcbad4dc14b65acde858781cb0b0be1e9df9436.tar.gz mv-6fcbad4dc14b65acde858781cb0b0be1e9df9436.tar.bz2 mv-6fcbad4dc14b65acde858781cb0b0be1e9df9436.tar.xz mv-6fcbad4dc14b65acde858781cb0b0be1e9df9436.zip |
Fix code style.
Diffstat (limited to 'src/gui/widgets/itemlinkhandler.cpp')
-rw-r--r-- | src/gui/widgets/itemlinkhandler.cpp | 7 |
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 |