summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-04-03 03:05:33 (GMT)
committerkintel <kintel@b57f626f-c46c-0410-a088-ec61d464b74c>2010-04-03 03:05:33 (GMT)
commit5f02e63693f7b32055e73fd7ebbfc91dabff68bd (patch)
treef22f80a676b3cc70a4c040973b5fc11a56ea44e4 /src
parent8184de7c136c1d54434aaea4d4b09a0149cb9e29 (diff)
MDI fix and Mac environment for qcodeedit
git-svn-id: http://svn.clifford.at/openscad/trunk@506 b57f626f-c46c-0410-a088-ec61d464b74c
Diffstat (limited to 'src')
-rw-r--r--src/mainwin.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/mainwin.cc b/src/mainwin.cc
index 816f897..b9ce5c7 100644
--- a/src/mainwin.cc
+++ b/src/mainwin.cc
@@ -412,7 +412,12 @@ void
MainWindow::openFile(const QString &new_filename)
{
#ifdef ENABLE_MDI
+#ifdef _QCODE_EDIT_
+ if (this->editor->document()->lines() > 1 ||
+ !this->editor->document()->text(true, false).trimmed().isEmpty()) {
+#else
if (!editor->toPlainText().isEmpty()) {
+#endif
new MainWindow(new_filename);
clearCurrentOutput();
return;
contact: Jan Huwald // Impressum