Commit c98b06a5 authored by Christoph Cullmann's avatar Christoph Cullmann 🐮
Browse files

try to fixup column resizing a bit

parent 1dec9c37
......@@ -236,14 +236,6 @@ void KateQuickOpen::update()
{
m_base_model->refresh();
m_listView->resizeColumnToContents(0);
// If we have a very long file name we restrict the size of the first column
// to take at most half of the space. Otherwise it would look odd.
int colw0 = m_listView->header()->sectionSize(0); // file name
int colw1 = m_listView->header()->sectionSize(1); // file path
if (colw0 > colw1) {
m_listView->setColumnWidth(0, (colw0 + colw1) / 2);
}
reselectFirst();
}
......
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