Commit 929202c2 authored by Marcell Fülöp's avatar Marcell Fülöp
Browse files

Make sure we detect query string here as doc->url() may not be accessible

parent cd0a1339
......@@ -631,7 +631,10 @@ void KateViewSpace::restoreConfig(KateViewManager *viewMan, const KConfigBase *c
// avoid empty view space
if (m_docToView.isEmpty()) {
auto *doc = KateApp::self()->documentManager()->documentList().first();
KateApp::self()->documentManager()->documentInfo(doc)->doPostLoadOperations = !doc->url().isLocalFile() && (KateApp::self()->hasCursorInArgs() || doc->url().hasQuery());
if (!fn.isEmpty()) {
QUrl url(fn);
KateApp::self()->documentManager()->documentInfo(doc)->doPostLoadOperations = !url.isLocalFile() && (KateApp::self()->hasCursorInArgs() || url.hasQuery());
}
viewMan->createView(doc, this);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment