Commit 4494156e authored by Christoph Cullmann's avatar Christoph Cullmann

try to fix crash, wrong check for non-existing tab, -1 != false

parent 0234b8a0
......@@ -269,7 +269,7 @@ bool KateViewSpace::showView(KTextEditor::Document *document)
kv->show();
// in case a tab does not exist, add one
if (!m_tabBar->documentIdx(document)) {
if (m_tabBar->documentIdx(document) == -1) {
insertTab(-1, document);
}
......
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