new QLabel(i18n("Location:"), homeUrlBox);
m_homeUrl = new QLineEdit(settings->homeUrl(), homeUrlBox);
- QPushButton* selectHomeUrlButton = new QPushButton(SmallIcon("folder"), QString(), homeUrlBox);
+ QPushButton* selectHomeUrlButton = new QPushButton(KIcon("folder"), QString(), homeUrlBox);
connect(selectHomeUrlButton, SIGNAL(clicked()),
this, SLOT(selectHomeUrl()));
void GeneralSettingsPage::selectHomeUrl()
{
const QString homeUrl(m_homeUrl->text());
- KUrl url(KFileDialog::getExistingUrl(homeUrl));
+ KUrl url(KFileDialog::getExistingDirectoryUrl(homeUrl));
if (!url.isEmpty()) {
m_homeUrl->setText(url.prettyUrl());
}