m_dirLister = new KDirLister();
m_dirLister->setDirOnlyMode(true);
m_dirLister->setAutoUpdate(true);
- m_dirLister->setMainWindow(topLevelWidget());
+ m_dirLister->setMainWindow(window());
m_dirLister->setDelayedMimeTypes(true);
m_dirLister->setAutoErrorHandlingEnabled(false, this);
KUrl baseUrl = url;
if (url.isLocalFile()) {
// use the root directory as base for local URLs
- baseUrl = KUrl("file:///");
+ baseUrl = QDir::rootPath();
} else {
// clear the path for non-local URLs and use it as base
baseUrl = url;