mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Wizard: Default button to Next
This commit is contained in:
parent
767ec4ed59
commit
088aa6ebdd
@ -16,6 +16,7 @@
|
||||
#include <QDir>
|
||||
#include <QFileDialog>
|
||||
#include <QUrl>
|
||||
#include <QPushButton>
|
||||
|
||||
#include "QProgressIndicator.h"
|
||||
|
||||
@ -119,6 +120,11 @@ void OwncloudSetupPage::initializePage()
|
||||
_authTypeKnown = false;
|
||||
_checking = false;
|
||||
|
||||
QAbstractButton *nextButton = wizard()->button(QWizard::NextButton);
|
||||
QPushButton *pushButton = qobject_cast<QPushButton*>(nextButton);
|
||||
if (pushButton)
|
||||
pushButton->setDefault(true);
|
||||
|
||||
// URL entry is disabled when url is overriden by theme. In that
|
||||
// case we just check the server type and switch to second page
|
||||
// immediately.
|
||||
|
||||
Loading…
Reference in New Issue
Block a user