-rw-r--r-- | core/apps/textedit/textedit.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 8b3c4c6..af427ac 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -974,6 +974,7 @@ void TextEdit::setDocument(const QString& fileref) { QFileInfo fi(currentFileName); qDebug("basename:"+fi.baseName()+": current filenmame "+currentFileName); - if(fi.baseName().left(1) == "") { - // openDotFile(currentFileName); + if( (fi.baseName().left(1)).isEmpty() ) { + openDotFile(currentFileName); + } else { qDebug("setDoc open"); |