author | llornkcor <llornkcor> | 2002-02-19 01:19:38 (UTC) |
---|---|---|
committer | llornkcor <llornkcor> | 2002-02-19 01:19:38 (UTC) |
commit | fe66103c21d3337bb6c7fc7ad112cbdedd255d67 (patch) (unidiff) | |
tree | 08dc9502be50036b96aa4158d849e363af0b23a1 /core | |
parent | 05ed9bc7fbd667815e2e3ec608773d19bfd294d2 (diff) | |
download | opie-fe66103c21d3337bb6c7fc7ad112cbdedd255d67.zip opie-fe66103c21d3337bb6c7fc7ad112cbdedd255d67.tar.gz opie-fe66103c21d3337bb6c7fc7ad112cbdedd255d67.tar.bz2 |
doh
-rw-r--r-- | core/apps/textedit/textedit.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index 2f59ede..019ffee 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp | |||
@@ -672,49 +672,49 @@ void TextEdit::openFile( const DocLnk &f ) | |||
672 | } | 672 | } |
673 | 673 | ||
674 | void TextEdit::showEditTools() | 674 | void TextEdit::showEditTools() |
675 | { | 675 | { |
676 | // if ( !doc ) | 676 | // if ( !doc ) |
677 | // close(); | 677 | // close(); |
678 | // clear(); | 678 | // clear(); |
679 | fileSelector->hide(); | 679 | fileSelector->hide(); |
680 | menu->show(); | 680 | menu->show(); |
681 | editBar->show(); | 681 | editBar->show(); |
682 | if ( searchVisible ) | 682 | if ( searchVisible ) |
683 | searchBar->show(); | 683 | searchBar->show(); |
684 | // updateCaption(); | 684 | // updateCaption(); |
685 | editorStack->raiseWidget( editor ); | 685 | editorStack->raiseWidget( editor ); |
686 | setWState (WState_Reserved1 ); | 686 | setWState (WState_Reserved1 ); |
687 | } | 687 | } |
688 | 688 | ||
689 | /*! | 689 | /*! |
690 | unprompted save */ | 690 | unprompted save */ |
691 | bool TextEdit::save() | 691 | bool TextEdit::save() |
692 | { | 692 | { |
693 | QString file = doc->file(); | 693 | QString file = doc->file(); |
694 | QString name= doc->name(); | 694 | QString name= doc->name(); |
695 | QString rt = editor->text(); | 695 | QString rt = editor->text(); |
696 | currentFileName= file ; | 696 | currentFileName= name ; |
697 | qDebug("saveFile "+currentFileName); | 697 | qDebug("saveFile "+currentFileName); |
698 | 698 | ||
699 | doc->setName( name); | 699 | doc->setName( name); |
700 | FileManager fm; | 700 | FileManager fm; |
701 | if ( !fm.saveFile( *doc, rt ) ) { | 701 | if ( !fm.saveFile( *doc, rt ) ) { |
702 | return false; | 702 | return false; |
703 | } | 703 | } |
704 | // if(doc) | 704 | // if(doc) |
705 | // delete doc; | 705 | // delete doc; |
706 | // doc = 0; | 706 | // doc = 0; |
707 | editor->setEdited( false ); | 707 | editor->setEdited( false ); |
708 | return true; | 708 | return true; |
709 | } | 709 | } |
710 | 710 | ||
711 | /*! | 711 | /*! |
712 | prompted save */ | 712 | prompted save */ |
713 | bool TextEdit::saveAs() | 713 | bool TextEdit::saveAs() |
714 | { | 714 | { |
715 | qDebug("saveAsFile "+currentFileName); | 715 | qDebug("saveAsFile "+currentFileName); |
716 | 716 | ||
717 | // case of nothing to save... /// there's always something to save | 717 | // case of nothing to save... /// there's always something to save |
718 | // if ( !doc )//|| !bFromDocView) | 718 | // if ( !doc )//|| !bFromDocView) |
719 | // { | 719 | // { |
720 | // qDebug("no doc"); | 720 | // qDebug("no doc"); |