From 8f7789655917f1110d903423e69f02ee88ee8212 Mon Sep 17 00:00:00 2001 From: Et0h Date: Sat, 24 Jan 2015 15:35:56 +0000 Subject: [PATCH] Make user row unselectable (to fix *nix icon glitch) --- syncplay/ui/gui.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/syncplay/ui/gui.py b/syncplay/ui/gui.py index 9c1b073..68044fb 100644 --- a/syncplay/ui/gui.py +++ b/syncplay/ui/gui.py @@ -170,6 +170,10 @@ class MainWindow(QtGui.QMainWindow): filenameitem.setFlags(filenameitem.flags() & ~Qt.ItemIsEditable) filesizeitem.setFlags(filesizeitem.flags() & ~Qt.ItemIsEditable) filedurationitem.setFlags(filedurationitem.flags() & ~Qt.ItemIsEditable) + useritem.setSelectable(False) + filesizeitem.setSelectable(False) + filedurationitem.setSelectable(False) + filenameitem.setSelectable(False) roomitem.appendRow((useritem, filesizeitem, filedurationitem, filenameitem)) self.listTreeModel = self._usertreebuffer self.listTreeView.setModel(self.listTreeModel)