diff options
| -rw-r--r-- | src/mainwin.cc | 5 | 
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc index b120f44..a16707b 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -304,8 +304,13 @@ MainWindow::MainWindow(const QString &filename)  	}  	connect(editor->document(), SIGNAL(contentsChanged()), this, SLOT(animateUpdateDocChanged())); +#ifdef _QCODE_EDIT_ +	connect(editor, SIGNAL(contentModified(bool)), this, SLOT(setWindowModified(bool))); +	connect(editor, SIGNAL(contentModified(bool)), fileActionSave, SLOT(setEnabled(bool))); +#else  	connect(editor->document(), SIGNAL(modificationChanged(bool)), this, SLOT(setWindowModified(bool)));  	connect(editor->document(), SIGNAL(modificationChanged(bool)), fileActionSave, SLOT(setEnabled(bool))); +#endif  	connect(screen, SIGNAL(doAnimateUpdate()), this, SLOT(animateUpdate()));  	connect(Preferences::inst(), SIGNAL(requestRedraw()), this->screen, SLOT(updateGL()));  | 
