One click copy logs to Qubes clipboard (#543)

This commit is contained in:
Agnieszka Kostrzewa 2012-05-10 13:40:27 +02:00
parent 7890aac8e8
commit c78d382f26
2 changed files with 4 additions and 5 deletions

View File

@ -48,7 +48,7 @@
<enum>Qt::TabFocus</enum>
</property>
<property name="text">
<string>Copy clipboard to Qubes clipboard</string>
<string>Copy to Qubes clipboard</string>
</property>
<property name="icon">
<iconset resource="resources.qrc">

View File

@ -51,14 +51,13 @@ class LogDialog(Ui_LogDialog, QDialog):
def __init_log_text__(self):
log = open(self.log_path)
text = log.read()
self.displayed_text = log.read()
log.close()
self.log_text.setText(text)
self.log_text.setText(self.displayed_text)
def copy_to_qubes_clipboard_triggered(self):
clipboard = self.app.clipboard().text()
copy_text_to_qubes_clipboard(clipboard)
copy_text_to_qubes_clipboard(self.displayed_text)
########################COPY TEXT TO QUBES CLIPBOARD