Skip to content

Commit

Permalink
Replace the text with placeholder as per ticket - NMC-2404
Browse files Browse the repository at this point in the history
  • Loading branch information
TSI-parulsharma committed Jul 13, 2023
1 parent ca01ea1 commit 0bb841d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/gui/folderwizard.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,11 +68,7 @@ FolderWizardLocalPath::FolderWizardLocalPath(const AccountPtr &account)
connect(_ui.localFolderChooseBtn, &QAbstractButton::clicked, this, &FolderWizardLocalPath::slotChooseLocalFolder);
_ui.localFolderChooseBtn->setToolTip(tr("Click to select a local folder to sync."));

QUrl serverUrl = _account->url();
serverUrl.setUserName(_account->credentials()->user());
QString defaultPath = QDir::homePath() + QLatin1Char('/') + Theme::instance()->appName();
defaultPath = FolderMan::instance()->findGoodPathForNewSyncFolder(defaultPath, serverUrl, FolderMan::GoodPathStrategy::AllowOnlyNewPath);
_ui.localFolderLineEdit->setText(tr("Please select a folder"));
_ui.localFolderLineEdit->setPlaceholderText(tr("Please select a folder"));
_ui.localFolderLineEdit->setToolTip(tr("Enter the path to the local folder."));

_ui.warnLabel->setTextFormat(Qt::RichText);
Expand Down

0 comments on commit 0bb841d

Please sign in to comment.