author | llornkcor <llornkcor> | 2002-02-19 01:29:58 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-19 01:29:58 (UTC) |
commit | 994691c1659fdac4980b0319aa8fab1c98ef3c73 (patch) (side-by-side diff) | |
tree | a7fa94deb3cbd4c7cda17f184eed634bbc0caac4 | |
parent | fe66103c21d3337bb6c7fc7ad112cbdedd255d67 (diff) | |
download | opie-994691c1659fdac4980b0319aa8fab1c98ef3c73.zip opie-994691c1659fdac4980b0319aa8fab1c98ef3c73.tar.gz opie-994691c1659fdac4980b0319aa8fab1c98ef3c73.tar.bz2 |
bug- saveas
-rw-r--r-- | core/apps/textedit/textedit.cpp | 4 |
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 @@ -530,13 +530,13 @@ void TextEdit::newFileOpen() for ( f = fileList.begin(); f != fileList.end(); f++ ) { fileTemp = *f; fileTemp.right( fileTemp.length()-5); QString fileName = fileTemp; if( fileName != "Unnamed" || fileName != "Empty Text" ) { currentFileName = fileName; -// qDebug("please open "+currentFileName); + qDebug("please open "+currentFileName); openFile(fileName ); } } } delete browseForFiles; editor->setEdited( true ); @@ -630,12 +630,14 @@ void TextEdit::openFile( const QString &f ) { bFromDocView = TRUE; DocLnk nf; nf.setType("text/plain"); nf.setFile(f); currentFileName=f; + QFileInfo fi( currentFileName); + nf.setName(fi.baseName()); qDebug("openFile string"+currentFileName); openFile(nf); showEditTools(); // Show filename in caption QString name = f; |