summaryrefslogtreecommitdiff
path: root/src/gui/windows/cutinwindow.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-02-06 14:32:35 +0300
committerAndrei Karas <akaras@inbox.ru>2016-02-06 14:32:35 +0300
commitce14a018a6f66aa1309ebe71a8217082d83cd0da (patch)
tree05d4268533abc06f7f7d4459a82d69dcea8ae2f7 /src/gui/windows/cutinwindow.cpp
parentf90aae8a2b49b87bd6bf66055a404914df3a0d05 (diff)
downloadmanaverse-ce14a018a6f66aa1309ebe71a8217082d83cd0da.tar.gz
manaverse-ce14a018a6f66aa1309ebe71a8217082d83cd0da.tar.bz2
manaverse-ce14a018a6f66aa1309ebe71a8217082d83cd0da.tar.xz
manaverse-ce14a018a6f66aa1309ebe71a8217082d83cd0da.zip
Hide cutin if npc window closed.
Diffstat (limited to 'src/gui/windows/cutinwindow.cpp')
-rw-r--r--src/gui/windows/cutinwindow.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/gui/windows/cutinwindow.cpp b/src/gui/windows/cutinwindow.cpp
index f8d21a37c..1a38661b8 100644
--- a/src/gui/windows/cutinwindow.cpp
+++ b/src/gui/windows/cutinwindow.cpp
@@ -139,6 +139,12 @@ void CutInWindow::show(const std::string &name,
}
}
+void CutInWindow::hide()
+{
+ delete2(mImage);
+ setVisible(Visible_false);
+}
+
void CutInWindow::logic()
{
if (mImage)