Skip to content

Commit

Permalink
Append instead of insert text
Browse files Browse the repository at this point in the history
  • Loading branch information
Insoleet committed Oct 23, 2017
1 parent 0a12c68 commit 8e7dae3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/sakia/gui/dialogs/connection_cfg/connection_cfg.ui
Original file line number Diff line number Diff line change
Expand Up @@ -458,6 +458,9 @@ p, li { white-space: pre-wrap; }
<property name="readOnly">
<bool>true</bool>
</property>
<property name="textInteractionFlags">
<set>Qt::TextSelectableByMouse</set>
</property>
</widget>
</item>
</layout>
Expand Down
3 changes: 2 additions & 1 deletion src/sakia/gui/dialogs/connection_cfg/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def __init__(self, parent):
self.edit_salt.textChanged.connect(self.values_changed)
self.edit_pubkey.textChanged.connect(self.values_changed)
self.button_generate.clicked.connect(self.action_show_pubkey)
self.text_license.setReadOnly(True)

self.combo_scrypt_params.currentIndexChanged.connect(self.handle_combo_change)
self.scrypt_params = ScryptParams(4096, 16, 1)
Expand Down Expand Up @@ -150,7 +151,7 @@ def stream_log(self, log):
Add log to
:param str log:
"""
self.plain_text_edit.insertPlainText("\n" + log)
self.plain_text_edit.appendPlainText(log)

def progress(self, step_ratio):
"""
Expand Down

0 comments on commit 8e7dae3

Please sign in to comment.