keep file name if calling "Save As" dialog
This commit is contained in:
@ -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() );
|
||||||
|
Reference in New Issue
Block a user