From aa593e0840783d1b38b0c812fd2f8120491ee296 Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sun, 6 Dec 2015 06:14:57 +0100 Subject: gui/main: don't raise a new window, it's enough to set visible --- gui/ui.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'gui') diff --git a/gui/ui.cpp b/gui/ui.cpp index e59b1c23..2bd8e72a 100644 --- a/gui/ui.cpp +++ b/gui/ui.cpp @@ -446,7 +446,6 @@ bool mk_dialog(mem lib, mem& orig) orig = dialog; dialog->show(); - dialog->raise(); QObject::connect(dialog.get(), &plugin_api::detail::BaseDialog::closing, [&]() -> void { orig = nullptr; }); @@ -486,7 +485,6 @@ bool mk_window(mem* place, Args&&... params) *place = std::make_shared(std::forward(params)...); (*place)->setWindowFlags(Qt::Dialog); (*place)->show(); - (*place)->raise(); return true; } } -- cgit v1.2.3