summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-04-03 03:05:24 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-04-03 03:05:24 (GMT)
commit7496c57586dc67c5bfc0631a5b23ecd33485130d (patch)
treeaac548f2cf556ed272f4df570861959000cfe9ce
parent8aad5e448fd9b4563fa2e9e1d69cdb64017370d8 (diff)
Fixed modified signal for qcodeedit
git-svn-id: http://svn.clifford.at/openscad/trunk@504 b57f626f-c46c-0410-a088-ec61d464b74c
-rw-r--r--src/mainwin.cc5
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()));
contact: Jan Huwald // Impressum