From b72cdaeee7b1083bb4e8e02d49ffbcce63715879 Mon Sep 17 00:00:00 2001 From: Johannes Pohl Date: Thu, 27 Apr 2017 10:26:58 +0200 Subject: [PATCH] set txt view read only --- src/urh/ui/views/DirectoryTreeView.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/urh/ui/views/DirectoryTreeView.py b/src/urh/ui/views/DirectoryTreeView.py index 7ed6f981..37e80aab 100644 --- a/src/urh/ui/views/DirectoryTreeView.py +++ b/src/urh/ui/views/DirectoryTreeView.py @@ -65,8 +65,10 @@ class DirectoryTreeView(QTreeView): return d = QDialog(self) d.resize(800, 600) + d.setWindowTitle(file_path) layout = QVBoxLayout(d) text_edit = QPlainTextEdit(content) + text_edit.setReadOnly(True) layout.addWidget(text_edit) d.setLayout(layout) d.show()