Show MainWindow before KAuth dialog.
This commit is contained in:
parent
1344021e1b
commit
93f18ebd9f
|
@ -131,12 +131,14 @@ void MainWindow::init()
|
|||
|
||||
listDevices().setActionCollection(actionCollection());
|
||||
listOperations().setActionCollection(actionCollection());
|
||||
pmWidget().init(&operationStack());
|
||||
|
||||
setupGUI();
|
||||
|
||||
loadConfig();
|
||||
|
||||
show();
|
||||
pmWidget().init(&operationStack());
|
||||
|
||||
scanDevices();
|
||||
}
|
||||
|
||||
|
|
|
@ -26,6 +26,7 @@ ScanProgressDialog::ScanProgressDialog(QWidget* parent) :
|
|||
setWindowTitle(xi18nc("@title:window", "Scanning devices..."));
|
||||
setMinimumWidth(280);
|
||||
setMinimumDuration(150);
|
||||
setValue(0);
|
||||
setAttribute(Qt::WA_ShowModal, true);
|
||||
}
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ int Q_DECL_IMPORT main(int argc, char* argv[])
|
|||
return 0;
|
||||
|
||||
MainWindow* mainWindow = new MainWindow();
|
||||
mainWindow->show();
|
||||
Q_UNUSED(mainWindow);
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue