-rw-r--r-- | microkde/kfiledialog.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/microkde/kfiledialog.cpp b/microkde/kfiledialog.cpp index 3f47425..6be1580 100644 --- a/microkde/kfiledialog.cpp +++ b/microkde/kfiledialog.cpp @@ -25,9 +25,12 @@ QString KFileDialog::getSaveFileName( const QString & fn, lay.addWidget( &o); // o.setNewVisible( true ); // o.setNameVisible( true ); dia.showMaximized(); - dia.setCaption( cap ); + if ( cap.isEmpty() ) + dia.setCaption( file ); + else + dia.setCaption( cap ); int res = dia.exec(); if ( res ) retfile = o.selectedName(); return retfile; |