diff options
Diffstat (limited to 'src/mainwin.cc')
-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 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; |