summaryrefslogtreecommitdiff
path: root/core/apps
authorllornkcor <llornkcor>2002-11-09 23:21:57 (UTC)
committer llornkcor <llornkcor>2002-11-09 23:21:57 (UTC)
commitdc4e5e557d8a506eb1461ff97e1fdcc7a9a91264 (patch) (unidiff)
tree19a4cd404200d3feee9f0b1654dc3b4712768dfd /core/apps
parent0c81c6287771d5ad416c2ddf0ae32ad5ce18c116 (diff)
downloadopie-dc4e5e557d8a506eb1461ff97e1fdcc7a9a91264.zip
opie-dc4e5e557d8a506eb1461ff97e1fdcc7a9a91264.tar.gz
opie-dc4e5e557d8a506eb1461ff97e1fdcc7a9a91264.tar.bz2
caption fix
Diffstat (limited to 'core/apps') (more/less context) (ignore 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
@@ -944,26 +944,26 @@ void TextEdit::clear() {
944void TextEdit::updateCaption( const QString &name ) { 944void TextEdit::updateCaption( const QString &name ) {
945 945
946 if ( name.isEmpty() ) 946 if ( name.isEmpty() )
947 setCaption( tr("Text Editor") ); 947 setCaption( tr("Text Editor") );
948 else { 948 else {
949 QString s = name; 949 QString s = name;
950 if ( s.isNull() ) 950 if ( s.isNull() )
951 s = doc->name(); 951 s = doc->name();
952 if ( s.isEmpty() ) { 952 if ( s.isEmpty() ) {
953 s = tr( "Unnamed" ); 953 s = tr( "Unnamed" );
954 currentFileName=s; 954 currentFileName=s;
955 } 955 }
956 if(s.left(1) == "/") 956// if(s.left(1) == "/")
957 s = s.right(s.length()-1); 957// s = s.right(s.length()-1);
958 setCaption( s + " - " + tr("Text Editor") ); 958 setCaption( s + " - " + tr("Text Editor") );
959 } 959 }
960} 960}
961 961
962void TextEdit::setDocument(const QString& fileref) { 962void TextEdit::setDocument(const QString& fileref) {
963 if(fileref != "Unnamed") { 963 if(fileref != "Unnamed") {
964 currentFileName=fileref; 964 currentFileName=fileref;
965 qDebug("setDocument"); 965 qDebug("setDocument");
966 QFileInfo fi(currentFileName); 966 QFileInfo fi(currentFileName);
967 qDebug("basename:"+fi.baseName()+": current filenmame "+currentFileName); 967 qDebug("basename:"+fi.baseName()+": current filenmame "+currentFileName);
968 if(fi.baseName().left(1) == "") { 968 if(fi.baseName().left(1) == "") {
969// openDotFile(currentFileName); 969// openDotFile(currentFileName);