Skip to content

Commit

Permalink
Do not show checkable actions as checked in HTML source editor.
Browse files Browse the repository at this point in the history
  • Loading branch information
ddennedy committed Oct 18, 2014
1 parent 10ae5f8 commit 6e6941b
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/htmleditor/htmleditor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -567,6 +567,12 @@ void HtmlEditor::changeTab(int index)
ui->actionEditCut->setEnabled(enabled);
ui->actionEditCopy->setEnabled(enabled);
ui->actionEditPaste->setEnabled(ui->plainTextEdit->canPaste());
ui->actionFormatBold->setChecked(false);
ui->actionFormatItalic->setChecked(false);
ui->actionFormatStrikethrough->setChecked(false);
ui->actionFormatUnderline->setChecked(false);
ui->actionFormatBulletedList->setChecked(false);
ui->actionFormatNumberedList->setChecked(false);
connect(ui->actionEditUndo, SIGNAL(triggered()), ui->plainTextEdit, SLOT(undo()));
connect(ui->actionEditRedo, SIGNAL(triggered()), ui->plainTextEdit, SLOT(redo()));
connect(ui->actionEditCut, SIGNAL(triggered()), ui->plainTextEdit, SLOT(cut()));
Expand Down

0 comments on commit 6e6941b

Please sign in to comment.