diff --git a/plugins/share/share_config.cpp b/plugins/share/share_config.cpp --- a/plugins/share/share_config.cpp +++ b/plugins/share/share_config.cpp @@ -49,16 +49,17 @@ { KCModule::defaults(); - m_ui->kurlrequester->setUrl(QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::DownloadLocation))); + m_ui->kurlrequester->setText(QStandardPaths::writableLocation(QStandardPaths::DownloadLocation)); Q_EMIT changed(true); } void ShareConfig::load() { KCModule::load(); - m_ui->kurlrequester->setUrl(QUrl::fromLocalFile(config()->get(QStringLiteral("incoming_path"), QStandardPaths::writableLocation(QStandardPaths::DownloadLocation)))); + const auto standardPath = QStandardPaths::writableLocation(QStandardPaths::DownloadLocation); + m_ui->kurlrequester->setText(config()->get(QStringLiteral("incoming_path"), standardPath)); Q_EMIT changed(false); }