diff -r 1c6c6a1c411f -r 1cec1d19a157 mainwindow.cpp --- a/mainwindow.cpp Fri Jun 16 10:29:37 2006 +0000 +++ b/mainwindow.cpp Thu Jul 13 08:40:58 2006 +0000 @@ -2039,14 +2039,22 @@ //fd->setPreviewMode( QFileDialog::Contents ); fd->setCaption(__VYM " - " +tr("Export to")+" Open Office"); //fd->setDir (lastImageDir); - fd->show(); + if (fd->foundConfig()) + { + fd->show(); - if ( fd->exec() == QDialog::Accepted ) + if ( fd->exec() == QDialog::Accepted ) + { + QString fn=fd->selectedFile(); + //lastImageDir=fn.left(fn.findRev ("/")); + if (currentMapEditor()) + currentMapEditor()->exportOOPresentation(fn,fd->selectedConfig()); + } + } else { - QString fn=fd->selectedFile(); - //lastImageDir=fn.left(fn.findRev ("/")); - if (currentMapEditor()) - currentMapEditor()->exportOOPresentation(fn,fd->selectedConfig()); + QMessageBox::warning(0, + tr("Warning"), + tr("Couldn't find configuration for export to Open Office\n")); } }