summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2015-12-06 06:14:57 +0100
committerStanislaw Halik <sthalik@misaki.pl>2015-12-06 06:14:57 +0100
commitaa593e0840783d1b38b0c812fd2f8120491ee296 (patch)
tree05f038bf2fd200d9bb28544cfaf30a6940fcb5bc
parentb31e4997de81efc3941072cc48b5f09064e62e81 (diff)
gui/main: don't raise a new window, it's enough to set visible
-rw-r--r--gui/ui.cpp2
1 files changed, 0 insertions, 2 deletions
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<dylib> lib, mem<t>& 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<t>* place, Args&&... params)
*place = std::make_shared<t>(std::forward<Args>(params)...);
(*place)->setWindowFlags(Qt::Dialog);
(*place)->show();
- (*place)->raise();
return true;
}
}