summaryrefslogtreecommitdiff
Side-by-side diff
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index 019ffee..197b28b 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -533,7 +533,7 @@ void TextEdit::newFileOpen()
QString fileName = fileTemp;
if( fileName != "Unnamed" || fileName != "Empty Text" ) {
currentFileName = fileName;
-// qDebug("please open "+currentFileName);
+ qDebug("please open "+currentFileName);
openFile(fileName );
}
}
@@ -633,6 +633,8 @@ void TextEdit::openFile( const QString &f )
nf.setType("text/plain");
nf.setFile(f);
currentFileName=f;
+ QFileInfo fi( currentFileName);
+ nf.setName(fi.baseName());
qDebug("openFile string"+currentFileName);
openFile(nf);