From 71f0618e5fdfe7c7f5c251fef3885ee3833d1046 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Mon, 16 Dec 2002 04:19:48 +0000 Subject: open dotfiles from setDocument differently --- (limited to 'core/apps') 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 @@ -973,8 +973,9 @@ void TextEdit::setDocument(const QString& fileref) { qDebug("setDocument"); 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"); bFromDocView = true; -- cgit v0.9.0.2