]> granicus.if.org Git - transmission/commitdiff
(qt) #5252 'file-renaming issues in Qt client': hide invisible columns in file-tree
authorJordan Lee <jordan@transmissionbt.com>
Fri, 1 Feb 2013 22:08:09 +0000 (22:08 +0000)
committerJordan Lee <jordan@transmissionbt.com>
Fri, 1 Feb 2013 22:08:09 +0000 (22:08 +0000)
qt/file-tree.cc

index f9c9f962b5baa779f92b7313dbbba4935b3ba039..6c41aa8dfbd9cf55b331dd810c2a2a7363bd00b1 100644 (file)
@@ -850,6 +850,11 @@ FileTreeView :: FileTreeView (QWidget * parent, bool isEditable):
   sortByColumn (COL_NAME, Qt::AscendingOrder);
   installEventFilter (this);
 
+  for (int i=0; i<FIRST_VISIBLE_COLUMN; ++i)
+    hideColumn (i);
+  for (int i=LAST_VISIBLE_COLUMN+1; i<NUM_COLUMNS; ++i)
+    hideColumn (i);
+
   for (int i=FIRST_VISIBLE_COLUMN; i<=LAST_VISIBLE_COLUMN; ++i)
     header()->setResizeMode(i, QHeaderView::Interactive);