Skip to content

Commit

Permalink
fix: blank document close without prompting to save.
Browse files Browse the repository at this point in the history
Change-Id: I28d3afbb00b09e69a204472783e0e865aad903ab
  • Loading branch information
rekols committed Sep 14, 2018
1 parent 98f6eb4 commit 4857888
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 0 additions & 1 deletion editor/src/texteditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ TextEditor::TextEditor(QPlainTextEdit *parent)
{
viewport()->installEventFilter(this);


// Don't draw frame around editor widget.
setFrameShape(QFrame::NoFrame);
setFocusPolicy(Qt::StrongFocus);
Expand Down
1 change: 1 addition & 0 deletions editor/src/window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,7 @@ Editor* Window::createEditor()
editor->textEditor->setSettings(m_settings);
editor->textEditor->setTabSpaceNumber(m_settings->settings->option("advance.editor.tab_space_number")->value().toInt());
editor->textEditor->setFontFamily(m_settings->settings->option("base.font.family")->value().toString());
editor->textEditor->setModified(false);
setFontSizeWithConfig(editor);

connect(editor->textEditor, &TextEditor::clickFindAction, this, &Window::popupFindBar, Qt::QueuedConnection);
Expand Down

0 comments on commit 4857888

Please sign in to comment.