keep file name if calling "Save As" dialog

This commit is contained in:
2011-10-07 11:52:08 +00:00
parent 79dd2cf4a9
commit d2f01eac6d

View File

@ -918,7 +918,7 @@ void PTextEdit::fileSaveAs()
fFileSystemWatcherActive = false; fFileSystemWatcherActive = false;
QString fn = QFileDialog::getSaveFileName( this, QString fn = QFileDialog::getSaveFileName( this,
tr( "Save msr-/mlog-file As" ), QString::null, tr( "Save msr-/mlog-file As" ), *fFilenames.find( currentEditor() ),
tr( "msr-Files (*.msr *.mlog);;All Files (*)" ) ); tr( "msr-Files (*.msr *.mlog);;All Files (*)" ) );
if ( !fn.isEmpty() ) { if ( !fn.isEmpty() ) {
fFilenames.remove( currentEditor() ); fFilenames.remove( currentEditor() );