diff -r 626fd85b1f69 -r 5391ab620c95 exports.cpp --- a/exports.cpp Tue Sep 05 15:05:18 2006 +0000 +++ b/exports.cpp Wed Sep 06 12:47:06 2006 +0000 @@ -1,7 +1,6 @@ #include -#include +#include #include -//Added by qt3to4: #include #include "exports.h" @@ -19,16 +18,16 @@ ExportBase::ExportBase() { indentPerDepth=" "; - // Create tmpdir - // FIXME not neededtmpDir.setPath (makeUniqueDir("/tmp/vym-XXXXXX")); - if (!tmpDir.cd ("tmp")) - qWarning ("Could not access temporary directory for export"); - // FIXME there's more needed here... + bool ok; + tmpDir.setPath (makeUniqueDir(ok,"/tmp/vym-XXXXXX")); + if (!tmpDir.exists() || !ok) + QMessageBox::critical( 0, QObject::tr( "Error" ), + QObject::tr("Couldn't access temporary directory\n")); } ExportBase::~ExportBase() { - // Remove tmpdir + // Cleanup tmpdir removeDir (tmpDir); } @@ -187,9 +186,9 @@ p.process(); QString ub=vymBaseDir.path()+"/scripts/update-bookmarks"; - QProcess *proc= new QProcess (); + QProcess *proc= new QProcess ; proc->start( ub); - if (!proc->waitForStarted()); + if (!proc->waitForStarted()) { QMessageBox::warning(0, QObject::tr("Warning"),