Skip to content

Commit

Permalink
save codeblock content when saving codeblock (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
JoelAtDeluxe authored and jrozner committed Oct 6, 2020
1 parent 12d4538 commit 3d5bd4d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/code_editor/codeblockview.cpp
Expand Up @@ -75,6 +75,7 @@ void CodeBlockView::loadFromFile(QString filepath) {
void CodeBlockView::saveEvidence() {
loadedCodeblock.source = sourceTextBox->text();
loadedCodeblock.subtype = languageComboBox->currentData().toString();
loadedCodeblock.content = codeEditor->toPlainText();
if (loadedCodeblock.filePath() != "") {
try {
Codeblock::saveCodeblock(loadedCodeblock);
Expand Down

0 comments on commit 3d5bd4d

Please sign in to comment.