Changeset View
Changeset View
Standalone View
Standalone View
plugins/share/share_config.cpp
Context not available. | |||||
49 | { | 49 | { | ||
---|---|---|---|---|---|
50 | KCModule::defaults(); | 50 | KCModule::defaults(); | ||
51 | 51 | | |||
52 | m_ui->kurlrequester->setUrl(QUrl::fromLocalFile(QStandardPaths::writableLocation(QStandardPaths::DownloadLocation))); | 52 | m_ui->kurlrequester->setText(QStandardPaths::writableLocation(QStandardPaths::DownloadLocation)); | ||
53 | 53 | | |||
54 | Q_EMIT changed(true); | 54 | Q_EMIT changed(true); | ||
55 | } | 55 | } | ||
Context not available. | |||||
58 | { | 58 | { | ||
59 | KCModule::load(); | 59 | KCModule::load(); | ||
60 | 60 | | |||
61 | m_ui->kurlrequester->setUrl(QUrl::fromLocalFile(config()->get(QStringLiteral("incoming_path"), QStandardPaths::writableLocation(QStandardPaths::DownloadLocation)))); | 61 | const auto standardPath = QStandardPaths::writableLocation(QStandardPaths::DownloadLocation); | ||
62 | m_ui->kurlrequester->setText(config()->get<QString>(QStringLiteral("incoming_path"), standardPath)); | ||||
62 | 63 | | |||
63 | Q_EMIT changed(false); | 64 | Q_EMIT changed(false); | ||
64 | } | 65 | } | ||
Context not available. |