From 994691c1659fdac4980b0319aa8fab1c98ef3c73 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Tue, 19 Feb 2002 01:29:58 +0000 Subject: bug- saveas --- 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); -- cgit v0.9.0.2