Fix crash in debug mode (MSVC) due to an assertion in Qt.

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17559 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
Abdelrazak Younes 2007-03-25 23:22:25 +00:00
parent 745c9e91fd
commit 642adc3eb7

View File

@ -32,7 +32,11 @@ QViewSourceDialog::QViewSourceDialog(QViewSource * form)
connect(updatePB, SIGNAL(clicked()),
this, SLOT(update()));
// setting a document at this point trigger an assertion in Qt
// so we disable the signals here:
form_->document()->blockSignals(true);
viewSourceTV->setDocument(form_->document());
form_->document()->blockSignals(false);
viewSourceTV->setReadOnly(true);
///dialog_->viewSourceTV->setAcceptRichText(false);
// this is personal. I think source code should be in fixed-size font