From 7496c57586dc67c5bfc0631a5b23ecd33485130d Mon Sep 17 00:00:00 2001 From: kintel Date: Sat, 3 Apr 2010 03:05:24 +0000 Subject: Fixed modified signal for qcodeedit git-svn-id: http://svn.clifford.at/openscad/trunk@504 b57f626f-c46c-0410-a088-ec61d464b74c 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())); -- cgit v0.10.1