Skip to content

Commit 6036dfd

Browse files
committed
mac: fix closing of log window
1 parent f6c09cd commit 6036dfd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/dune3d_application.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,8 @@ void Dune3DApplication::on_startup()
104104
m_log_dispatcher.set_handler([this](const auto &it) { m_log_window->get_view().push_log(it); });
105105
Logger::get().set_log_handler([this](const Logger::Item &it) { m_log_dispatcher.log(it); });
106106
property_active_window().signal_changed().connect([this] {
107-
if (auto win = get_active_window())
107+
auto win = get_active_window();
108+
if (win && win != m_log_window->get_transient_for())
108109
m_log_window->set_transient_for(*win);
109110
});
110111

0 commit comments

Comments
 (0)