AddCloudWizard Folder read-only

.. bit of a catch 22 scenario with folder being selected
   without opening the service by manually editing the
   folder name.

.. this causes problems when open is then called and the
   folder is invalid - especially when we're in the middle
   of configuring the service anyway.

.. to avoid this, the folder widget is now read-only and
   you must select the folder using the browse function.
This commit is contained in:
Mark Liversedge
2017-09-23 10:02:02 +01:00
parent bd06ec2458
commit 243361e7d1

View File

@@ -443,6 +443,7 @@ AddSettings::AddSettings(AddCloudWizard *parent) : QWizardPage(parent), wizard(p
folderLabel = new QLabel(tr("Folder"));
folder = new QLineEdit(this);
folder->setSizePolicy(QSizePolicy::Expanding, QSizePolicy::Fixed);
folder->setReadOnly(true); // only allow folder selection via di
browse = new QPushButton(tr("Browse"));
syncStartup = new QCheckBox(tr("Sync on startup"));
syncImport = new QCheckBox(tr("Sync on import"));