summaryrefslogtreecommitdiff
path: root/Source/Core/DolphinQt2/Config/LogWidget.cpp
diff options
context:
space:
mode:
authorspycrab <spycrab@users.noreply.github.com>2017-09-20 13:18:36 +0200
committerspycrab <spycrab@users.noreply.github.com>2017-09-20 15:12:26 +0200
commit0b43e1bcf460c5bfb488acdcc885695152be0a25 (patch)
tree995311e5917e85559441dda682fc97dc5860b2a3 /Source/Core/DolphinQt2/Config/LogWidget.cpp
parentd1abd71ccb650e78e27371b19a7e7c861312b787 (diff)
Qt: Fix log / log config window not being marked as hidden when closing
Diffstat (limited to 'Source/Core/DolphinQt2/Config/LogWidget.cpp')
-rw-r--r--Source/Core/DolphinQt2/Config/LogWidget.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/DolphinQt2/Config/LogWidget.cpp b/Source/Core/DolphinQt2/Config/LogWidget.cpp
index d31203371e..e9293c22db 100644
--- a/Source/Core/DolphinQt2/Config/LogWidget.cpp
+++ b/Source/Core/DolphinQt2/Config/LogWidget.cpp
@@ -207,3 +207,8 @@ void LogWidget::Log(LogTypes::LOG_LEVELS level, const char* text)
QString::fromStdString(color),
QString::fromStdString(std::string(text).substr(TIMESTAMP_LENGTH))));
}
+
+void LogWidget::closeEvent(QCloseEvent*)
+{
+ Settings::Instance().SetLogVisible(false);
+}