Skip to content

Commit

Permalink
close #539 make reply box only accept plaintext
Browse files Browse the repository at this point in the history
reply box was accepting rich text input
  • Loading branch information
deeplow committed Oct 22, 2019
1 parent df66f46 commit 6dd0244
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
from PyQt5.QtGui import QIcon, QPalette, QBrush, QColor, QFont, QLinearGradient
from PyQt5.QtWidgets import QListWidget, QLabel, QWidget, QListWidgetItem, QHBoxLayout, \
QPushButton, QVBoxLayout, QLineEdit, QScrollArea, QDialog, QAction, QMenu, QMessageBox, \
QToolButton, QSizePolicy, QTextEdit, QStatusBar, QGraphicsDropShadowEffect, QApplication
QToolButton, QSizePolicy, QPlainTextEdit, QStatusBar, QGraphicsDropShadowEffect, QApplication

from securedrop_client.db import Source, Message, File, Reply, User
from securedrop_client.storage import source_exists
Expand Down Expand Up @@ -2230,7 +2230,7 @@ class ReplyBoxWidget(QWidget):
font-size: 18px;
color: #9c9dbb;
}
QTextEdit {
QPlainTextEdit {
border: none;
}
QPushButton {
Expand Down Expand Up @@ -2260,7 +2260,7 @@ def __init__(self, source: Source, controller: Controller) -> None:
layout.setContentsMargins(0, 0, 0, 0)

# Create widgets
self.text_edit = QTextEdit()
self.text_edit = QPlainTextEdit()

self.send_button = QPushButton()
self.send_button.clicked.connect(self.send_reply)
Expand Down

0 comments on commit 6dd0244

Please sign in to comment.