Skip to content

Commit f1bd253

Browse files
committed
fix(ui): show wizard as modal dialog
* Switches wizard launch to `show()` + `setModal(true)` for consistent modal behavior across platforms * Removes close-delete, macOS dialog flag, `open()`, and deferred raise/activate logic to avoid focus/stacking issues
1 parent 1ccc827 commit f1bd253

1 file changed

Lines changed: 2 additions & 13 deletions

File tree

src/ui/main_window/MainWindowSlotUI.cpp

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -46,19 +46,8 @@ void MainWindow::SlotSetStatusBarText(const QString& text) {
4646

4747
void MainWindow::slot_start_wizard() {
4848
auto* wizard = new Wizard(this);
49-
wizard->setAttribute(Qt::WA_DeleteOnClose);
50-
wizard->setWindowModality(Qt::ApplicationModal);
51-
52-
#ifdef Q_OS_MACOS
53-
wizard->setWindowFlag(Qt::Dialog, true);
54-
#endif
55-
56-
wizard->open();
57-
58-
QTimer::singleShot(0, wizard, [wizard]() {
59-
wizard->raise();
60-
wizard->activateWindow();
61-
});
49+
wizard->show();
50+
wizard->setModal(true);
6251
}
6352

6453
void MainWindow::slot_maybe_show_wizard() {

0 commit comments

Comments
 (0)