mirror of
https://bitbucket.org/smil3y/kdelibs.git
synced 2025-02-24 02:42:48 +00:00
kfile: improve URL sanity check in KDirOperator::setUrl()
This commit is contained in:
parent
6ca6c7ed22
commit
a4448333c4
1 changed files with 1 additions and 1 deletions
|
@ -960,7 +960,7 @@ void KDirOperator::setUrl(const KUrl& _newurl, bool clearforward)
|
|||
{
|
||||
KUrl newurl;
|
||||
|
||||
if (!_newurl.isValid())
|
||||
if (!_newurl.isValid() || newurl.toLocalFile().isEmpty())
|
||||
newurl = QUrl::fromLocalFile(QDir::homePath());
|
||||
else
|
||||
newurl = _newurl;
|
||||
|
|
Loading…
Add table
Reference in a new issue