From 05ed9bc7fbd667815e2e3ec608773d19bfd294d2 Mon Sep 17 00:00:00 2001 From: llornkcor Date: Tue, 19 Feb 2002 01:16:12 +0000 Subject: fixed bug in save (unprompted) saving a new unnamed file... --- (limited to 'core/apps') diff --git a/core/apps/textedit/textedit.cpp b/core/apps/textedit/textedit.cpp index e41c69d..2f59ede 100644 --- a/core/apps/textedit/textedit.cpp +++ b/core/apps/textedit/textedit.cpp @@ -690,10 +690,13 @@ void TextEdit::showEditTools() unprompted save */ bool TextEdit::save() { - qDebug("saveFile "+currentFileName); - + QString file = doc->file(); + QString name= doc->name(); QString rt = editor->text(); - doc->setName( currentFileName); + currentFileName= file ; + qDebug("saveFile "+currentFileName); + + doc->setName( name); FileManager fm; if ( !fm.saveFile( *doc, rt ) ) { return false; -- cgit v0.9.0.2