author | llornkcor <llornkcor> | 2002-12-16 04:19:48 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-12-16 04:19:48 (UTC) |
commit | 71f0618e5fdfe7c7f5c251fef3885ee3833d1046 (patch) (side-by-side diff) | |
tree | ccda3bdd02fd1313a64a26b635b8787ae9b381d2 | |
parent | cc6c77e7014a3056debd6963946265671d41517d (diff) | |
download | opie-71f0618e5fdfe7c7f5c251fef3885ee3833d1046.zip opie-71f0618e5fdfe7c7f5c251fef3885ee3833d1046.tar.gz opie-71f0618e5fdfe7c7f5c251fef3885ee3833d1046.tar.bz2 |
open dotfiles from setDocument differently
-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"); |