Skip to content

Commit 081cff3

Browse files
memuratsgithub-actions
authored andcommitted
update folderwizard
1 parent 05e9056 commit 081cff3

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/gui/folderwizard.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,15 @@ FolderWizardLocalPath::FolderWizardLocalPath(const AccountPtr &account)
7474
_ui.setupUi(this);
7575
registerField(QLatin1String("sourceFolder"), _ui.localFolderLineEdit);
7676
connect(_ui.localFolderChooseBtn, &QAbstractButton::clicked, this, &FolderWizardLocalPath::slotChooseLocalFolder);
77-
_ui.localFolderChooseBtn->setToolTip(tr("Click to select a local folder to sync."));
77+
connect(_ui.localFolderLineEdit, &QLineEdit::textChanged, this, &QWizardPage::completeChanged);
7878

7979
// QUrl serverUrl = _account->url();
8080
// serverUrl.setUserName(_account->credentials()->user());
8181
// QString defaultPath = QDir::homePath() + QLatin1Char('/') + Theme::instance()->appName();
8282
// defaultPath = FolderMan::instance()->findGoodPathForNewSyncFolder(defaultPath, serverUrl, FolderMan::GoodPathStrategy::AllowOnlyNewPath);
8383
// _ui.localFolderLineEdit->setText(QDir::toNativeSeparators(defaultPath));
84+
85+
_ui.localFolderChooseBtn->setToolTip(tr("Click to select a local folder to sync."));
8486
_ui.localFolderLineEdit->setToolTip(tr("Enter the path to the local folder."));
8587
_ui.localFolderLineEdit->setPlaceholderText(tr("Select a local folder"));
8688

@@ -107,7 +109,7 @@ bool FolderWizardLocalPath::isComplete() const
107109
if (_ui.localFolderLineEdit->text().isEmpty()) {
108110
_ui.warnLabel->hide();
109111
_ui.warnLabel->clear();
110-
return true; // initial isOk
112+
return false; // wichtig!
111113
}
112114

113115
QUrl serverUrl = _account->url();

0 commit comments

Comments
 (0)