Allow Timeline-URLs as homepage

FEATURE: 313151
REVIEW: 108428
This commit is contained in:
Andrea Scarpino 2013-01-16 23:04:47 +00:59
parent 48231488bd
commit 550da74b54

View file

@ -119,7 +119,7 @@ void StartupSettingsPage::applySettings()
const KUrl url(m_homeUrl->text());
KFileItem fileItem(KFileItem::Unknown, KFileItem::Unknown, url);
if (url.isValid() && fileItem.isDir()) {
if ((url.isValid() && fileItem.isDir()) || (url.protocol() == QLatin1String("timeline"))) {
settings->setHomeUrl(url.prettyUrl());
} else {
KMessageBox::error(this, i18nc("@info", "The location for the home folder is invalid or does not exist, it will not be applied."));