summaryrefslogtreecommitdiff
authorllornkcor <llornkcor>2002-11-09 23:21:57 (UTC)
committer llornkcor <llornkcor>2002-11-09 23:21:57 (UTC)
commitdc4e5e557d8a506eb1461ff97e1fdcc7a9a91264 (patch) (side-by-side diff)
tree19a4cd404200d3feee9f0b1654dc3b4712768dfd
parent0c81c6287771d5ad416c2ddf0ae32ad5ce18c116 (diff)
downloadopie-dc4e5e557d8a506eb1461ff97e1fdcc7a9a91264.zip
opie-dc4e5e557d8a506eb1461ff97e1fdcc7a9a91264.tar.gz
opie-dc4e5e557d8a506eb1461ff97e1fdcc7a9a91264.tar.bz2
caption fix
Diffstat (more/less context) (show whitespace changes)
-rw-r--r--core/apps/textedit/textedit.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp
index 1c3b393..e978fa4 100644
--- a/core/apps/textedit/textedit.cpp
+++ b/core/apps/textedit/textedit.cpp
@@ -940,34 +940,34 @@ void TextEdit::clear() {
doc = 0;
editor->clear();
}
void TextEdit::updateCaption( const QString &name ) {
if ( name.isEmpty() )
setCaption( tr("Text Editor") );
else {
QString s = name;
if ( s.isNull() )
s = doc->name();
if ( s.isEmpty() ) {
s = tr( "Unnamed" );
currentFileName=s;
}
- if(s.left(1) == "/")
- s = s.right(s.length()-1);
+// if(s.left(1) == "/")
+// s = s.right(s.length()-1);
setCaption( s + " - " + tr("Text Editor") );
}
}
void TextEdit::setDocument(const QString& fileref) {
if(fileref != "Unnamed") {
currentFileName=fileref;
qDebug("setDocument");
QFileInfo fi(currentFileName);
qDebug("basename:"+fi.baseName()+": current filenmame "+currentFileName);
if(fi.baseName().left(1) == "") {
// openDotFile(currentFileName);
} else {
qDebug("setDoc open");
bFromDocView = true;
openFile(fileref);