diff -r 1c6c6a1c411f -r 3dc98c8843bc mainwindow.cpp --- a/mainwindow.cpp Fri Jun 16 10:29:37 2006 +0000 +++ b/mainwindow.cpp Tue Aug 01 09:30:57 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")); } }